61 lines
1.3 KiB
ApacheConf
61 lines
1.3 KiB
ApacheConf
ServerName ${SERVER_NAME}
|
|
ServerRoot "/usr/local/apache2"
|
|
Timeout 300
|
|
KeepAlive On
|
|
MaxKeepAliveRequests 100
|
|
KeepAliveTimeout 5
|
|
User daemon
|
|
Group daemon
|
|
HostnameLookups Off
|
|
ErrorLog /proc/self/fd/2
|
|
LogLevel warn
|
|
|
|
# Include module configuration:
|
|
IncludeOptional conf/mods/*.load
|
|
IncludeOptional conf/mods/*.conf
|
|
|
|
# Include list of ports to listen on
|
|
Include conf/ports.conf
|
|
|
|
<Directory />
|
|
Options FollowSymLinks
|
|
AllowOverride None
|
|
Require all denied
|
|
</Directory>
|
|
|
|
<Directory /usr/share>
|
|
AllowOverride None
|
|
Require all granted
|
|
</Directory>
|
|
|
|
<Directory /var/www/>
|
|
Options Indexes FollowSymLinks
|
|
AllowOverride None
|
|
Require all granted
|
|
</Directory>
|
|
|
|
AccessFileName .htaccess
|
|
|
|
<FilesMatch "^\.ht">
|
|
Require all denied
|
|
</FilesMatch>
|
|
|
|
<IfModule log_config_module>
|
|
<IfModule logio_module>
|
|
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
|
|
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
|
|
LogFormat "%h %l %u %t \"%r\" %>s %O" common
|
|
</IfModule>
|
|
LogFormat "%{Referer}i -> %U" referer
|
|
LogFormat "%{User-agent}i" agent
|
|
CustomLog /proc/self/fd/1 common
|
|
</IfModule>
|
|
|
|
# Include generic snippets of statements
|
|
IncludeOptional conf/conf/*.conf
|
|
|
|
# Include the virtual host configurations:
|
|
IncludeOptional conf/sites/*.conf
|
|
|
|
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
|