http.conf开启代理模块

LoadModule proxy_module modules/mod_proxy.so 
LoadModule proxy_http_module modules/mod_proxy.so 
#其它模块,看着添加
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so

ip反向代理

<VirtualHost *:80> 
    ServerName www.a.org
    ProxyRequests Off
    <Proxy *>
    Order deny,allow
    Allow from all
    </Proxy>
    ProxyPass / http://192.168.0.115/
    ProxyPassReverse / http://192.168.0.115/
</VirtualHost>

域名解析:

<VirtualHost *:80>
ServerName wx.zhxy.njlsedu.cn
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / http://wx.19.njlsedu.cn/
ProxyPassReverse / http://wx.19.njlsedu.cn/
ProxyPreserveHost Off
</VirtualHost>

被代理的网站配置

Listen 701
<VirtualHost *:701>
    DocumentRoot "E:\webroot\cz_bask"
    ServerName auth.zhxy.njgcjy.com
    <Directory "E:\webroot\cz_bask"> 
        AllowOverride all
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>