apache 80 端口 做转发到其他端口

时间:2020-03-31 11:24:20   收藏:0   阅读:83
<VirtualHost *:80>
    DocumentRoot /opt/www/
    ServerName xxx.com
    ErrorLog logs/xxx.com-error_log
    CustomLog logs/xxx.com-access_log combined
    #<Location /scheme_node_act/>
     #ProxyPass http://localhost:8360/
     #ProxyPassReverse http://localhost:8360/
     ProxyPassMatch  ~*/(scheme_node_act)/(.*)  http://localhost:8361/$1/$2
     ProxyPassMatch  ~*/(manager)/(.*)  http://localhost:8360/$1/$2
     ProxyPassMatch  ~*/(home_web)/(.*)  http://localhost:8360/$1/$2
     ProxyPassMatch  ~*/(cplusplus)/(.*)  http://localhost:8360/$1/$2
     ProxyPassMatch  ~*/(xzy_exam)/(.*)  http://localhost:8362/$1/$2
     ProxyPassMatch  ~*/(erlang)/(.*)  http://localhost:8080/xiao2_war/$1/$2
    # ProxyPassMatch  ~*/(golanger)/(.*)  
    http://localhost:8080/zajindan_war/$1/$2


    #</Location>

</VirtualHost>

  

原文:https://www.cnblogs.com/shijiu520/p/12603105.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!