2025-01-19 11:25:00 +00:00
|
|
|
<VirtualHost *:80>
|
|
|
|
|
ServerName FULLY.QUALIFIED.DOMAIN.NAME
|
|
|
|
|
RemoteIPHeader CF-Connecting-IP
|
|
|
|
|
|
|
|
|
|
ProxyPreserveHost On
|
|
|
|
|
ProxyRequests Off
|
|
|
|
|
|
|
|
|
|
ProxyPass / http://127.0.0.1:8085/
|
|
|
|
|
ProxyPassReverse / http://127.0.0.1:8085
|
|
|
|
|
|
|
|
|
|
# Add support for X-Forwarded-For
|
|
|
|
|
RequestHeader set X-Forwarded-For "%{REMOTE_ADDR}s"
|
|
|
|
|
|
2025-01-19 13:41:44 +00:00
|
|
|
# Logging
|
2025-01-19 11:25:00 +00:00
|
|
|
ErrorLog ${APACHE_LOG_DIR}/echoip-error.log
|
|
|
|
|
CustomLog ${APACHE_LOG_DIR}/echoip-access.log combined
|
|
|
|
|
|
2025-01-19 13:41:44 +00:00
|
|
|
# Enable RewriteEngine
|
|
|
|
|
RewriteEngine On
|
|
|
|
|
|
|
|
|
|
# Skip redirection if User-Agent contains "curl"
|
|
|
|
|
RewriteCond %{HTTP_USER_AGENT} !curl/ [NC]
|
|
|
|
|
|
2025-01-19 11:25:00 +00:00
|
|
|
|
|
|
|
|
</VirtualHost>
|
|
|
|
|
|
|
|
|
|
|