forked from SimplesIP/pabx-app
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
133 lines
2.8 KiB
133 lines
2.8 KiB
ServerRoot "/etc/httpd" |
|
Listen 80 |
|
|
|
Include conf.modules.d/*.conf |
|
|
|
User pbx |
|
Group pbx |
|
ServerAdmin root@localhost |
|
|
|
<Directory /> |
|
AllowOverride none |
|
Require all denied |
|
</Directory> |
|
|
|
DocumentRoot "/var/www/html/aplicativo" |
|
|
|
<Directory "/var/www"> |
|
Options -Indexes -Includes |
|
AllowOverride None |
|
Require all granted |
|
</Directory> |
|
|
|
<Directory "/var/www/html"> |
|
Options Indexes FollowSymLinks |
|
Options -Indexes -Includes |
|
AllowOverride None |
|
Require all granted |
|
</Directory> |
|
|
|
|
|
<IfModule dir_module> |
|
DirectoryIndex index.html |
|
</IfModule> |
|
|
|
<Files ".ht*"> |
|
Require all denied |
|
</Files> |
|
|
|
ErrorLog "logs/error_log" |
|
LogLevel warn |
|
|
|
|
|
<IfModule log_config_module> |
|
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined |
|
LogFormat "%h %l %u %t \"%r\" %>s %b" common |
|
|
|
<IfModule logio_module> |
|
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio |
|
</IfModule> |
|
CustomLog "logs/access_log" combined |
|
</IfModule> |
|
|
|
|
|
<IfModule alias_module> |
|
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/" |
|
</IfModule> |
|
|
|
<Directory "/var/www/cgi-bin"> |
|
AllowOverride None |
|
Options None |
|
Require all granted |
|
</Directory> |
|
|
|
|
|
<IfModule mime_module> |
|
TypesConfig /etc/mime.types |
|
AddType application/x-compress .Z |
|
AddType application/x-gzip .gz .tgz |
|
AddType text/html .shtml |
|
AddOutputFilter INCLUDES .shtml |
|
</IfModule> |
|
|
|
AddDefaultCharset ISO-8859-1 |
|
|
|
<IfModule mime_magic_module> |
|
MIMEMagicFile conf/magic |
|
</IfModule> |
|
|
|
EnableSendfile on |
|
IncludeOptional conf.d/*.conf |
|
|
|
|
|
Alias /gravacoes "/var/spool/asterisk/monitor" |
|
<Directory "/var/spool/asterisk/monitor"> |
|
Options Indexes MultiViews |
|
AllowOverride None |
|
Order allow,deny |
|
Allow from 127.0.0.1 |
|
Require all granted |
|
</Directory> |
|
|
|
Alias /agenda "/var/www/html/agenda" |
|
<Directory "/var/www/html/agenda/"> |
|
Options Indexes MultiViews |
|
AllowOverride None |
|
Order allow,deny |
|
Allow from all |
|
Require all granted |
|
</Directory> |
|
|
|
Alias /downloads "/hdaux/downloads" |
|
<Directory "/hdaux/downloads/"> |
|
Options Indexes MultiViews |
|
AllowOverride None |
|
Order allow,deny |
|
Allow from all |
|
Require all granted |
|
</Directory> |
|
|
|
Alias /ferramentas "/hdaux/utilitarios/ferramentas" |
|
<Directory "/hdaux/utilitarios/ferramentas/"> |
|
Options Indexes MultiViews |
|
AllowOverride None |
|
Order allow,deny |
|
Allow from all |
|
Require all granted |
|
</Directory> |
|
|
|
Alias /manuais "/hdaux/utilitarios/manuais" |
|
<Directory "/hdaux/utilitarios/manuais/"> |
|
Options Indexes MultiViews |
|
AllowOverride None |
|
Order allow,deny |
|
Allow from all |
|
Require all granted |
|
</Directory> |
|
|
|
####################################################### |
|
############ FORCA O HTTPS QDO CONFIGURADO ############ |
|
####################################################### |
|
#RewriteEngine On |
|
#RewriteCond %{HTTPS} !=on |
|
#RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
|
|
|