apache配置反向代理

http.conf

去掉前面的#号

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

然后在vhosts.conf配置文件里加入如下代码

<VirtualHost *:>
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>
上一篇:20145304 《Java程序设计》课程总结


下一篇:[教程]Delphi 中三种回调函数形式解析