Advertisement
Guest User

Untitled

a guest
Aug 4th, 2014
3,081
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. fighting slowloris easy :
  2.  
  3. make.conf :
  4.  
  5. APACHE2_MODULES="reqtimeout actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias"
  6.  
  7. emerge new apache
  8.  
  9. httpd.conf : add :
  10. LoadModule reqtimeout_module modules/mod_reqtimeout.so
  11. Include /etc/apache2/conf.d/reqtimeout.conf
  12.  
  13. /etc/apache2/conf.d/reqtimeout.conf :
  14. <IfModule mod_reqtimeout.c>
  15. RequestReadTimeout header=5-10,MinRate=1000 body=10-15,MinRate=1000
  16. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement