去掉httpd.conf文件#注释
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
Include conf/extra/httpd-vhosts.conf
配置httpd-vhosts.conf
<VirtualHost *:80>
ProxyPreserveHost On
ServerAdmin a@chenxuhou.com
ServerName www.chenxuhou.com
ProxyPass / http://127.0.0.1:9000/
ProxyPassReverse / http://127.0.0.1:9000/
</VirtualHost>
<VirtualHost *:80>
ProxyPreserveHost On
ServerAdmin a@chenxuhou.com
ServerName www.chenxuhou.com
ProxyPass / http://127.0.0.1:9000/
ProxyPassReverse / http://127.0.0.1:9000/
</VirtualHost>
保存重启apache,访问(www.)iyume.cn将转发到本机的9000端口