Search code examples
apacheproxyreverse-proxymod-proxy

Apache, include correct "Server" header when proxying


I got the following section in mine httpd.conf

<virtualhost *>
    ServerName my.domain.com
    ProxyRequests off
    ProxyPass / http://192.168.1.193/
    ProxyPassReverse / http://my.domain.com
</virtualhost>

The problem is that apache replaces the "Server" header with it's own IP address. How do I force it to use "my.domain.com" in the server header?


Solution

  • ProxyPreserveHost On