# Load required modules LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_http_module modules/mod_proxy_http.so LoadModule headers_module modules/mod_headers.so # Basic server configuration ServerName localhost Listen 0.0.0.0:9090 # Virtual host for reverse proxy ServerName localhost # Reverse proxy to Node.js app ProxyPreserveHost On ProxyPass / http://172.28.248.193:5000/ ProxyPassReverse / http://172.28.248.193:5000 # Set X-Forwarded-For header (Apache 2.2 syntax) # First, unset any existing header to avoid duplicates # Then set it with the real client IP RequestHeader set X-Forwarded-For %{REMOTE_ADDR}s