Apache24 服务配置域名分发

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>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值