mirror of
https://github.com/myvesta/vesta.git
synced 2025-03-12 04:35:23 -07:00
59 lines
1.2 KiB
Plaintext
59 lines
1.2 KiB
Plaintext
|
ServerRoot "/etc/httpd"
|
||
|
Include conf.modules.d/*.conf
|
||
|
User apache
|
||
|
Group apache
|
||
|
ServerAdmin root@localhost
|
||
|
|
||
|
<Directory />
|
||
|
AllowOverride none
|
||
|
</Directory>
|
||
|
|
||
|
DocumentRoot "/var/www/html"
|
||
|
<Directory "/var/www">
|
||
|
AllowOverride None
|
||
|
Require all granted
|
||
|
</Directory>
|
||
|
|
||
|
<Directory "/var/www/html">
|
||
|
Options Indexes FollowSymLinks
|
||
|
AllowOverride None
|
||
|
Require all granted
|
||
|
</Directory>
|
||
|
|
||
|
DirectoryIndex index.php index.html
|
||
|
|
||
|
<Files ".ht*">
|
||
|
Require all denied
|
||
|
</Files>
|
||
|
|
||
|
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 "%b" bytes
|
||
|
CustomLog "logs/access_log" combined
|
||
|
|
||
|
TypesConfig /etc/mime.types
|
||
|
AddType application/x-compress .Z
|
||
|
AddType application/x-gzip .gz .tgz
|
||
|
AddType text/html .shtml
|
||
|
AddOutputFilter INCLUDES .shtml
|
||
|
#AddHandler cgi-script .cgi
|
||
|
|
||
|
AddDefaultCharset UTF-8
|
||
|
|
||
|
<IfModule mime_magic_module>
|
||
|
MIMEMagicFile conf/magic
|
||
|
</IfModule>
|
||
|
|
||
|
EnableSendfile on
|
||
|
|
||
|
<IfModule remoteip_module>
|
||
|
RemoteIPHeader X-Real-IP
|
||
|
LogFormat "%a %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
|
||
|
LogFormat "%a %l %u %t \"%r\" %>s %b" common
|
||
|
</IfModule>
|
||
|
|
||
|
IncludeOptional conf.d/*.conf
|