然后假设apache服务器已经安装完成,打开httpd.conf配置文件,找到这些地方去掉#开启代理模块:
LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_connect_module modules/mod_proxy_connect.so LoadModule proxy_http_module modules/mod_proxy_http.so LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
<VirtualHost *:80> ServerAdmin WWW.molilock.com DocumentRoot "D:/PHPnow/htdocs" ServerName WWW.molilock.com ErrorLog logs/dummy-host.example.com-error_log CustomLog logs/dummy-host.example.com-access_log common </VirtualHost> <VirtualHost *:80> ServerAdmin WWW.molilock.cn DocumentRoot "D:/PHPnow/htdocs" ServerName WWW.molilock.cn ProxyPass / http://www.molilock.cn:81/ ProxyPassReverse / http://www.molilock.cn:81/ ErrorLog logs/dummy-host.example.com-error_log CustomLog logs/dummy-host.example.com-access_log common </VirtualHost>
参考:http://www.cnblogs.com/haocool/p/3595282.html