phpstudy 开启apache反向代理
2018/4/22 18:31:15 点击:
<VirtualHost *:80>
ServerAdmin webmaster@mydomain.com
ServerName test.mydomain.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
ServerAdmin webmaster@mydomain.com
ServerName test.mydomain.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
- 上一篇:色情邮件趋于泛滥 [2018-4-22]
- 下一篇:JSP获取用户真实IP地址 [2018-4-22]