phpstudy 开启apache反向代理

时间:2015-11-19 15:00:35   收藏:0   阅读:4417

vhosts.conf

<VirtualHost *:8080>
ServerAdmin webmaster@dummy-host.example.com
ServerName j.ptl.com
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / http://127.0.0.1:81/
ProxyPassReverse / http://127.0.0.1:81/
</VirtualHost>

 然后 httpd.conf 里面取消注释以下两行  

#LoadModule proxy_module modules/mod_proxy.so
#LoadModule proxy_http_module modules/mod_proxy_http.so


重启后应该正常
评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!