21 lines
736 B
Cheetah
21 lines
736 B
Cheetah
<VirtualHost *:80>
|
|
|
|
ServerAdmin webmaster@localhost
|
|
DocumentRoot /var/www/html
|
|
|
|
# We are behind a proxy and using remoteip
|
|
# See https://httpd.apache.org/docs/2.4/mod/mod_remoteip.html
|
|
RemoteIPHeader X-Forwarded-For
|
|
# TODO: Fix override with something more useful?
|
|
# RemoteIPInternalProxy traefik
|
|
|
|
# Combined log format with %h replaced by %a as we are behind a proxy
|
|
# See https://httpd.apache.org/docs/2.4/mod/mod_log_config.html#formats
|
|
# for more details of custom log formats.
|
|
LogFormat "%a %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" remoteip_combined
|
|
CustomLog ${APACHE_LOG_DIR}/access.log remoteip_combined
|
|
|
|
ErrorLog ${APACHE_LOG_DIR}/error.log
|
|
|
|
</VirtualHost>
|