Apache2 configuration proxy pass
| README.md | ||
Apache 2 configuration
Mode normal
<IfModule mod_ssl.c>
<Location />
SetEnvIfNoCase User-Agent "MJ12bot" bad_bot
SetEnvIfNoCase User-Agent "Baiduspider" bad_bot
SetEnvIfNoCase User-Agent "Vagabondo" bad_bot
SetEnvIfNoCase User-Agent "lwp-trivial" bad_bot
SetEnvIfNoCase User-Agent "Wget" bad_bot
SetEnvIfNoCase User-Agent "XoviBot" bad_bot
SetEnvIfNoCase User-Agent "xovibot" bad_bot
SetEnvIfNoCase User-Agent "AhrefsBot" bad_bot
SetEnvIfNoCase User-Agent "SemrushBot" bad_bot
SetEnvIfNoCase User-Agent "Custom-AsyncHttpClient" bad_bot
SetEnvIfNoCase User-Agent "libredtail-http" bad_bot
SetEnvIfNoCase User-Agent "YandexBot" bad_bot
SetEnvIfNoCase User-Agent "megaindex" bad_bot
SetEnvIfNoCase User-Agent "GuzzleHttp" bad_bot
SetEnvIfNoCase User-Agent "CCBot" bad_bot
SetEnvIfNoCase User-Agent "barkrowler" bad_bot
SetEnvIfNoCase User-Agent "dotbot" bad_bot
SetEnvIfNoCase User-Agent "attentio" bad_bot
SetEnvIfNoCase User-Agent "Neevabot" bad_bot
SetEnvIfNoCase User-Agent "netEstate" bad_bot
SetEnvIfNoCase User-Agent "amazonbot" bad_bot
SetEnvIfNoCase User-Agent "AmazonBot" bad_bot
SetEnvIfNoCase User-Agent "IbouBot" bad_bot
Deny from env=bad_bot
</Location>
<VirtualHost *:443 >
ServerAdmin monemailadmin@cyber-neurones.org
DocumentRoot /var/www/html/goaccess/
ServerName mondomaine.cyber-neurones.org
<Directory /var/www/html/mondomaine/>
Options +FollowSymlinks
AllowOverride All
Require all granted
Deny from bad_bot
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.mondomaine-ssl.log
CustomLog ${APACHE_LOG_DIR}/access.mondomaine-ssl.log combined
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/mondomaine.cyber-neurones.org/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/mondomaine.cyber-neurones.org/privkey.pem
</VirtualHost>
</IfModule>