Apache とIIS 80ポートを共存

 

1.IISのポート80を8080へ変更
2.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

“#"を削除、apache プロキシモジュールを有効
追加:
NameVirtualHost 110.110.110.110:80
<VirtualHost *:80>
DocumentRoot d:/apache/www/test1
ServerName www.startnews24_c.com </VirtualHost>
<VIRTUALHOST 110.110.110.110:80>
ServerName www.startnews24_a.com
ProxyPass / http://www.startnews24_a.com:8080/
ProxyPassReverse / http://www.startnews24_a.com:8080/ </VIRTUALHOST>
<VIRTUALHOST 110.110.110.110:80>
ServerName www.startnews24_b.com
ProxyPass / http://www.startnews24_b.com:8080/
ProxyPassReverse / http://www.startnews24_b.com:8080/
</VIRTUALHOST>

 

3.Apacheが再起動

 

Server

Posted by arkgame