ProxyPass and DocumentRoot on one domain

后端 未结 3 795
长发绾君心
长发绾君心 2021-02-07 02:27

Let\'s say I have the following configuration:


    # Server names, admins, logs etc...

    ProxyVia On
    ProxyRequests Off
             


        
3条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-07 03:19

    I use:

    
    #other irrelevant configs here
    ProxyPass /forum http://localhost:8080/myBB
    ProxyPassReverse /forum http://localhost:8080/myBB
    ProxyPass / http://localhost:8081/tomcat-app
    ProxyPassReverse / http://localhost:8081/tomcat-app
    
    

    You don't have to say "tomcat-app" if your tomcat app is the root app.

提交回复
热议问题