Enviado em 13/07/2020 - 11:40h
Bom dia!<VirtualHost *:443> ServerName www.example.br ServerAdmin webmaster@example.br DocumentRoot /var/www/html/public ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined SSLEngine on SSLCACertificateFile /etc/ssl/certs/PSign_TrustCenter_Root_CA-I.pem SSLCertificateKeyFile /etc/ssl/private/server.key SSLCertificateFile /etc/ssl/private/server.crt <IfModule maxminddb_module> MaxMindDBEnable On MaxMindDBFile CITY_DB /usr/share/GeoIP/GeoLite2-City.mmdb MaxMindDBFile COUNTRY_DB /usr/share/GeoIP/GeoLite2-Country.mmdb MaxMindDBEnv MM_CONTINENT_CODE COUNTRY_DB/continent/code MaxMindDBEnv MM_CONTINENT_NAME COUNTRY_DB/continent/names/en MaxMindDBEnv MM_COUNTRY_CODE COUNTRY_DB/country/iso_code MaxMindDBEnv MM_COUNTRY_NAME COUNTRY_DB/country/names/en #SetEnvIf MM_COUNTRY_CODE ^(CN|EU) BlockCountry SetEnvIf MM_COUNTRY_CODE ^(CN|RU|UA|AL) BlockCountry <Location /> <RequireAll> Require all granted Require not env BlockCountry </RequireAll> </Location> </IfModule> <IfModule mod_headers.c> Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains; nosniff; SAMEORIGIN" </IfModule> # netdata RewriteEngine on ProxyRequests Off <proxy> Order deny,allow Allow from all </proxy> ProxyPass "/netdata/" "http://192.168.80.4:19999/" connectiontimeout=5 timeout=30 ProxyPassReverse "/netdata/" "http://192.168.80.4:19999/" <location /netdata/> AuthType Basic AuthName "Netdata User Access Required" AuthUserFile /etc/apache2/.htpasswd Require valid-user Order deny,allow Allow from all </location> # awstats Alias /awstatsclasses "/usr/share/awstats/lib/" Alias /awstats-icon/ "/usr/share/awstats/icon/" Alias /awstatscss "/usr/share/doc/awstats/examples/css" ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ ScriptAlias /awstats/ /usr/lib/cgi-bin/ Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch <Directory "/usr/lib/cgi-bin/"> <Files awstats.pl> AuthUserFile /etc/apache2/.htpasswd AuthName "Awstats login" AuthType Basic Require valid-user </Files> </Directory> </VirtualHost>
Enviado em 15/07/2020 - 17:57h
No netdata a autenticação está aplicada a /netdata/ (dentro de <location /netdata/> ... </location>) enquanto no awstats a autenticação está aplicada apenas ao arquivo awstats.pl (dentro da seção <Files awstats.pl>).Enviado em 15/07/2020 - 20:18h
A intenção era autenticar o acesso ao arquivo awstats.pl# awstats Alias /awstatsclasses "/usr/share/awstats/lib/" Alias /awstats-icon/ "/usr/share/awstats/icon/" Alias /awstatscss "/usr/share/doc/awstats/examples/css" ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ ScriptAlias /awstats/ /usr/lib/cgi-bin/ Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch <location /awstats/> DirectoryIndex awstats.pl AuthUserFile /etc/apache2/.htpasswd AuthName "Awstats login" AuthType Basic Require valid-user Order deny,allow Allow from all </location>
Criar entrada (menuentry) ISO no Grub
Como gerar qualquer emoji ou símbolo unicode a partir do seu teclado
Instalando o Pi-Hole versão v5.18.4 depois do lançamento da versão v6.0
Instalar o VIM 9.1 no Debian 12
Como saber o range de um IP público?
Muitas dificuldades ao instalar distro Linux em Notebook Sony Vaio PCG-6131L (VPCEA24FM)
Linux Mint (21.2) não reconhece teclado mecanico RASEC da PCYES (2)