[apache]基于apache配置反向代理的实现
时间:2016-10-30 来源:酷播 点击:
http.conf
去掉前面的#号
- LoadModule proxy_module modules/mod_proxy.so
- LoadModule proxy_http_module modules/mod_proxy_http.so
然后在vhosts.conf配置文件里加入如下代码
- <VirtualHost *:80>
- DocumentRoot "D:\webser\www"
- ServerName test.com
- ServerAlias
- ErrorLog "logs/test.com.error.log"
- CustomLog "logs/test.com.access.log" common
- <Directory "D:\webser\www">
- Options FollowSymLinks ExecCGI
- AllowOverride All
- Order allow,deny
- Allow from all
- Require all granted
- </Directory>
- ProxyPass / http://123.123.123.123:565/
- ProxyPassReverse / http://123.123.123.123:565/
- </VirtualHost>
[apache]基于apache配置反向代理的实现