问个apache的proxy的高难度问题

由 cozo 在 10-13-2004 10:44 发表:

问个apache的proxy的高难度问题

我的机器上有两个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/
>
> >
>
> &gt; &gt; * * * &gt; &gt;

但是这样当我访问自己的localhost的时候,出现的403错误,不知道在哪里可以加入权限啊?


勿以善小而不为,勿以恶小而为之。


由 emylekao 在 10-17-2004 17:56 发表:


用rewri

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus