Apache, include correct "Server" header when proxying
I got the following section in mine httpd.开发者_JAVA百科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?
ProxyPreserveHost On
精彩评论