D:\Apache24\conf\extra 最后一个文件httpd-vhosts.conf 结尾添加
<VirtualHost *:80>
ServerAdmin cd@polysoft.com.cnServerName http://www.xxxxxx.net
ServerAlias http://www.xxxxxxx.net http://114.111.96.30
ProxyPreserveHost On
ProxyRequests Off
ProxyPass /file http://114.111.96.30:8081/file
ProxyPassReverse /file http://114.111.96.30:8081/file
ProxyPass /cms http://114.111.96.30:8081/cms
ProxyPassReverse /cms http://114.111.96.30:8081/cms
ProxyPass /crm http://114.111.96.30:8082/crm
ProxyPassReverse /crm http://114.111.96.30.cn:8082/crm
ProxyPass /oms http://114.111.96.30:8083/oms
ProxyPassReverse /oms http://114.112.96.30:8083/oms
ProxyPass / http://114.111.96.30:8084/
ProxyPassReverse / http://114.111.96.30:8084/
ErrorLog logs/net_error_log
CustomLog logs/net_custom_log common
</VirtualHost>
本文介绍如何在Apache服务器中配置httpd-vhosts.conf文件实现多个应用服务的代理设置,包括具体的代理路径映射、错误日志及自定义日志配置。

被折叠的 条评论
为什么被折叠?



