[apache]基于apache配置反向代理的实现
[apache]基于apache配置反向代理的实现
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配置反向代理的实现
热门文章推荐
- [apache]apache的添加mime类型mime.types作用说明
- [apache]在FMS下修改apache默认端口方法
- [php]解决Apache+PHP服务器提示HTTP 500问题
- [apache]如何配置路由器让外网能访问内网
- [apache]Apache+php+mysql在windows下的安装与配置图解
- [Apache]apache与lighttpd、nginx这三个WEB网站服务器分析
- [apache]基于apache配置反向代理的实现
- [apache]如何在apache服务器中添加本地环境的域名
请稍候...