Add blocks to nagios.conf httpd

I forgot I am the expert on nagios configs so added it to the template
file.

Signed-off-by: Stephen Smoogen <ssmoogen@redhat.com>
This commit is contained in:
Stephen Smoogen 2024-07-08 12:22:23 -04:00 committed by zlopez
parent 969bbfcf2a
commit a0397d7abb

View file

@ -51,6 +51,11 @@ Alias /robots.txt /var/www/robots.txt
RewriteEngine on
RewriteRule ^/$ /nagios/ [R]
# Spiders-gone-wild
# These spiders may not follow robots.txt and will
# hit admin sections which consume large amounts of CPU
RewriteCond %{HTTP_USER_AGENT} ^.*(Bytespider|ClaudeBot|Amazonbot|YandexBot|ChatGLM-Spider|GPTBot|Barkrowler|YisouSpider|MJ12bot).*$ [NC]
RewriteRule .* - [F,L]
Alias /nagios /usr/share/nagios/html/
<Directory "/usr/share/nagios/html">