您的位置:首页 > 运维架构 > Apache

Apache24 服务配置域名分发

2017-02-22 16:23 549 查看
D:\Apache24\conf\extra 最后一个文件httpd-vhosts.conf 结尾添加

<VirtualHost *:80>

        ServerAdmin cd@polysoft.com.cn

    ServerName 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