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>
Aprenda a Gerenciar Permissões de Arquivos no Linux
Como transformar um áudio em vídeo com efeito de forma de onda (wave form)
Como aprovar Pull Requests em seu repositório Github via linha de comando
Mantenha seu Sistema Leve e Rápido com a Limpeza do APT!
Procurando vídeos de YouTube pelo terminal e assistindo via mpv (2025)
Gravação de tela com temporizador
como instalo panfrost-dri e o driver panfrost fork , ou panfrost (16)
problema no debian que poderia ser corrigido por comando? (12)
Usar uma VM dentro do meu notebook como firewall para um dispositivo e... (0)
Eu tive esse erro aqui depois de de baixar o HyprLand Ubuntu na versão... (1)