2021-10-25 08:13:46 -05:00
|
|
|
<VirtualHost *:80>
|
|
|
|
|
|
|
|
ServerAdmin admin@example.com
|
|
|
|
ServerName example.com
|
|
|
|
|
|
|
|
ProxyPreserveHost On
|
2024-06-18 12:15:48 -05:00
|
|
|
ProxyAddHeaders On
|
|
|
|
ProxyPassMatch ^/(live/websocket)$ ws://localhost:8000/$1
|
2021-10-25 08:13:46 -05:00
|
|
|
ProxyPass / http://localhost:8000/
|
|
|
|
ProxyPassReverse / http://localhost:8000/
|
|
|
|
|
|
|
|
SetEnvIf X-Forwarded-For "^.*\..*\..*\..*" forwarded
|
|
|
|
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
|
|
|
|
LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" forwarded
|
|
|
|
|
|
|
|
ErrorLog ${APACHE_LOG_DIR}/error.log
|
|
|
|
CustomLog ${APACHE_LOG_DIR}/access.log combined env=!forwarded
|
|
|
|
CustomLog ${APACHE_LOG_DIR}/access.log forwarded env=forwarded
|
|
|
|
|
|
|
|
</VirtualHost>
|