# see http://sources.debian.net/src/apache2/2.4.10-1/debian/config-dir/apache2.conf
Mutex file:/var/lock/apache2 default
PidFile /var/run/apache2/apache2.pid
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 5
User www-data
Group www-data
HostnameLookups Off
ErrorLog /var/log/apache2/error.log
LogLevel warn
IncludeOptional mods-enabled/*.load
IncludeOptional mods-enabled/*.conf
# ports.conf
Listen 80
Listen 443
Listen 443
DocumentRoot "/var/www/html/"
Options FollowSymLinks
AllowOverride None
Require all denied
Options FollowSymLinks
AllowOverride All
Require all granted
ProxyPass http://BACKEND_HOST:BACKEND_PORT/api/ retry=0
ProxyPassReverse http://BACKEND_HOST:BACKEND_PORT/api/
ProxyPass http://BACKEND_HOST:BACKEND_PORT/signalr/ retry=0
ProxyPassReverse http://BACKEND_HOST:BACKEND_PORT/signalr/
ProxyPass ws://BACKEND_HOST:BACKEND_PORT/signalr/connect retry=0
ProxyPass ws://BACKEND_HOST:BACKEND_PORT/signalr/reconnect retry=0
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
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
CustomLog /var/log/apache2/access.log combined
SetHandler application/x-httpd-php
# Multiple DirectoryIndex directives within the same context will add
# to the list of resources to look for rather than replace
# https://httpd.apache.org/docs/current/mod/mod_dir.html#directoryindex
DirectoryIndex disabled
DirectoryIndex index.php index.html