@cryptotaxi247 / netdata-1 / commits / 40e2cd079

Docs: add configuration details for vhost about DOSPageCount to Apache proxy guide (#7582)

* docs(Running-behind-apache): Add vhost example for DOSPageCount * docs(Running-behind-apache): Adjust indentation level for code block; Change DOSPageCount value from 50 to 30 * docs(Running-behind-apache): Shorten documentation by removing unnecessary config

Kim 金可明 committed Dec 21, 2019 at 23:11 UTC 40e2cd07940eff290e3247e078ff32349aa1e2c0
1 file changed +19 -2
docs/Running-behind-apache.md
+19 -2
@@ -239,8 +239,8 @@ module's protection, and your dashboard will become unresponsive. You may even b
239 To mitigate this issue, you will need to change the value of the `DOSPageCount` option in your `mod_evasive.conf` file,
240 which can typically be found at `/etc/httpd/conf.d/mod_evasive.conf` or `/etc/apache2/mods-enabled/evasive.conf`.
241
242 -The `DOSPageCount` option sets the limit fo the number of requests from a single IP address for the same page per page
243 -interval, which is usually 1 second. THe default value is `2` requests per second. Clearly, Netdata's typical usage will
242 +The `DOSPageCount` option sets the limit of the number of requests from a single IP address for the same page per page
243 +interval, which is usually 1 second. The default value is `2` requests per second. Clearly, Netdata's typical usage will
244 exceed that threshold, and `mod_evasive` will add your IP address to a blocklist.
245
246 Our users have found success by setting `DOSPageCount` to `30`. Try this, and raise the value if you continue to see 403
@@ -253,6 +253,23 @@ DOSPageCount 30
253 Restart Apache with `sudo service apache2 restart`, or the appropriate method to restart services on your system, to
254 reload its configuration with your new values.
255
256 +
257 +### Virtual host
258 +
259 +To adjust the `DOSPageCount` for a specific virtual host, open your virtual host config, which can be found at
260 +`/etc/httpd/conf/sites-available/my-domain.conf` or `/etc/apache2/sites-available/my-domain.conf` and add the
261 +following:
262 +
263 +```conf
264 +<VirtualHost *:80>
265 + ...
266 + # Increase the DOSPageCount to prevent 403 errors and IP addresses being blocked.
267 + <IfModule mod_evasive20.c>
268 + DOSPageCount 30
269 + </IfModule>
270 +</VirtualHost>
271 +```
272 +
273 See issues [#2011](https://github.com/netdata/netdata/issues/2011) and
274 [#7658](https://github.com/netdata/netdata/issues/7568) for more information.
275