apache配置端口转发的具体方法如下:
(相关推荐:apache)
去掉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 icytail@iyume.cn ServerName iyume.cn ProxyPass / http://127.0.0.1:9000/ ProxyPassReverse / http://127.0.0.1:9000/ </VirtualHost> <VirtualHost *:80> ProxyPreserveHost On ServerAdmin icytail@iyume.cn ServerName www.iyume.cn ProxyPass / http://127.0.0.1:9000/ ProxyPassReverse / http://127.0.0.1:9000/ </VirtualHost>
保存重启apache,访问(www.)iyume.cn将转发到本机的9000端口
Atas ialah kandungan terperinci apache配置端口转发的具体方法. Untuk maklumat lanjut, sila ikut artikel berkaitan lain di laman web China PHP!