ServerRoot "/etc/httpd"
Listen 80
Include conf.modules.d/*.conf
User pbx
Group pbx
ServerAdmin root@localhost
AllowOverride none
Require all denied
DocumentRoot "/var/www/html/aplicativo"
Options -Indexes -Includes
AllowOverride None
Require all granted
Options Indexes FollowSymLinks
Options -Indexes -Includes
AllowOverride None
Require all granted
DirectoryIndex index.html
Require all denied
ErrorLog "logs/error_log"
LogLevel warn
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
CustomLog "logs/access_log" combined
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
AllowOverride None
Options None
Require all granted
TypesConfig /etc/mime.types
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
AddDefaultCharset ISO-8859-1
MIMEMagicFile conf/magic
EnableSendfile on
IncludeOptional conf.d/*.conf
Alias /gravacoes "/var/spool/asterisk/monitor"
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from 127.0.0.1
Require all granted
Alias /agenda "/var/www/html/agenda"
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
Require all granted
Alias /downloads "/hdaux/downloads"
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
Require all granted
Alias /ferramentas "/hdaux/utilitarios/ferramentas"
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
Require all granted
Alias /manuais "/hdaux/utilitarios/manuais"
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
Require all granted
#######################################################
############ FORCA O HTTPS QDO CONFIGURADO ############
#######################################################
#RewriteEngine On
#RewriteCond %{HTTPS} !=on
#RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]