|
|
我的机器上有两个web服务器,分别使用80和81端口。我希望在外部看不到这个区别,或者在自己编程时方便一些,因此想通过80端口的apache把localhost这个域名的请求转发到81端口上去。
新建了虚拟主机,
[PHP]
<VirtualHost *>
ServerName localhost
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot E:/xampp/htdocs/
ProxyPass / http://localhost:81/
ProxyPassReverse / http://localhost:81/
</VirtualHost>
[/PHP]
但是这样当我访问自己的localhost的时候,出现的403错误,不知道在哪里可以加入权限啊? |
|