开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜