Sharepoint服务器上的Apache反向代理如何保留代理端口

时间:2020-03-31 16:04:35

标签: apache sharepoint reverse-proxy

我正在为共享点服务器添加apache反向代理。 下面是虚拟主机配置。

< VirtualHost *:80 >

    ServerName spdev1.domain.com 
    ProxyRequests Off
    ProxyPreserveHost On
    RequestHeader unset Origin
    #ProxyVia Off


    <Proxy *>
    Order Deny,Allow
    Allow from all
    </Proxy>
    ProxyPass / http://172.16.2.1:8001/ retry=1 acquire=3000 timeout=600 Keepalive=On
    ProxyPassReverse / http://172.16.2.1:8001/
< /VirtualHost>

当我访问URL http://spdev1.domain.com时,Sharepoint网站将被重定向到http://spdev1.domain.com:8001

如何在响应中保留代理端口号80,而不是重定向到端口8001?

Sharepoint网站是否需要任何更改?

谢谢

1 个答案:

答案 0 :(得分:0)

我能够通过添加从内部URL到公共URL的备用访问映射来解决此问题。