更新时间:2023-09-18 22:19:40
如您所见,使用ProxyPass
更改Web应用程序的路径通常会破坏一切.
Using ProxyPass
to change the path of a web application, as you can see, usually ruins everything.
相反,您应该执行以下操作之一:
Instead, you should do either this:
ProxyPass /tomcat http://dev.debian.local:8088/tomcat
ProxyPassReverse /tomcat http://dev.debian.local:8088/tomcat
或者这个:
ProxyPass / http://dev.debian.local:8088
ProxyPassReverse / http://dev.debian.local:8088
如果选择第二种方法,则将"tomcat" Web应用程序重命名为"ROOT"(区分大小写:即使在不区分大小写的文件系统上,也要使用大写字母).
If you take the second option, re-name your "tomcat" web application to "ROOT" (case-sensitive: use capitals, even on a cass-insensitive filesystem).