开发者

Apache, include correct "Server" header when proxying

开发者 https://www.devze.com 2022-12-28 09:04 出处:网络
I got the following section in mine httpd.开发者_JAVA百科conf <virtualhost *> ServerName my.domain.com

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

精彩评论

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