且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

301重定向错误(细心就不应该出错)

更新时间:2022-09-16 13:32:53

301重定向错误

301重定向错误(细心就不应该出错)

1
<br>

<VirtualHost *:80>

ServerName mqsj.mq.com

ProxyRequests Off

<Proxy http://mqsj.mq.com>

 Order allow,deny

 Allow from all

</Proxy>

ProxyPass / http://222.190.121.13/pub

ProxyPassReverse / http://222.190.121.13/pub

</VirtualHost>


解决

<VirtualHost *:80>

ServerName mqsj.mq.com

ProxyRequests Off

<Proxy http://mqsj.mq.com>

 Order allow,deny

 Allow from all

</Proxy>

ProxyPass / http://222.190.121.13/pub/

ProxyPassReverse / http://222.190.121.13/pub/

</VirtualHost>


跳转后输入用户名和密码不跳转

需要添加参数

ProxyPreserveHost on 



本文转自 cs312779641 51CTO博客,原文链接:http://blog.51cto.com/chenhao6/1710056