ProxyPass and DocumentRoot on one domain

后端 未结 3 791
长发绾君心
长发绾君心 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 02:57

    What it is recommending is using mod_rewrite to perform the ProxyPass instead of ProxyPass/ProxyPassReverse command.

    Try something like:

    RewriteRule  ^/forum   -  [L]
    RewriteRule  ^/(.*)    http://localhost:8080/tomcat-webapp/$1  [P,L]
    ProxyPassReverse /     http://localhost:8080/tomcat-webapp/
    

提交回复
热议问题