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

<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>

  

猜你喜欢

转载自www.cnblogs.com/shijiu520/p/12603105.html
今日推荐