Apache 2.4-ProxyPass和ProxyReserve无法正常工作

时间:2018-09-05 04:09:33

标签: linux apache centos

在尝试将原始URL重定向到其他URL但保留原始URL时遇到问题。

原始网站:http://www.mysite.com/recruit 新网站:https://www.newsite.com

这是我的vhost.conf文件

<VirtualHost *:80>
ServerName www.mysite.com
ServerAlias mysite.com
ServerAdmin root@localhost
DocumentRoot /var/www/vhosts/www.mysite.com/


 <Location /recruit>
         ProxyPass https://newsite.com
         ProxyPassReverse https://newsite.com
 </Location>

</VirtualHost>

成功重新启动httpd,但是在访问http:/www.mysite.com/recruit时 它说:

Not Found

The requested URL /recruit was not found on this server.

0 个答案:

没有答案