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埠
以上是apache配置連接埠轉送的具體方法的詳細內容。更多資訊請關注PHP中文網其他相關文章!