Set mod_reqtimeout unlimited time for a specific folder

I basically have two questions:
How do you set RequestReadTimeout (in mod_reqtimeout), header and body time for: unlimited time
and
How to apply this to a specific folder?

By default reqtimeout.conf:

<IfModule reqtimeout_module> RequestReadTimeout header=10-20,minrate=500 RequestReadTimeout body=10,minrate=500 </IfModule> 

So it will be something like:

 <IfModule reqtimeout_module> #Apply this to the /var/www/unlimitedtime folder <Directory /var/www/unlimitedtime> RequestReadTimeout header=unlimited,MinRate=0 body=unlimited,MinRate=0 </Directory> </IfModule> 

This does not work, but it is just an example that might make my question clearer.

thanks

+4
source share
1 answer

A few tips from the official documentation of top RequestReadTimeout :

Context: server configuration, virtual host

This means that this directive is high-level directive; there is no Location or Directory context. In fact, timeouts are applied long before the web server can apply the catalog solution on demand (request not received ...), so it is quite normal. This means that you cannot apply this directive in the Directory , and you can not do anything for this, sorry.

type = timeout

The time in seconds is allowed to read all request headers or bodies, respectively. A value of 0 means no limit .

Therefore, instead of using form 10-20 just set 0 and it will become an unlimited timeout. Or at least what the documentation implies. But this is a really good way to make your DOS web server enabled. A few HTTP requests at the correct URL and you will get a good Deny of Service , so I hope some other Timeout parameter overrides it (but maybe not, be careful) :-)

+1
source

Source: https://habr.com/ru/post/1395040/


All Articles