我试图重build一个需要在RedHat 4.1.2服务器上从Tomcat 6.0.16和Apache HTTPD 2.2.3提供内容的服务器。
我需要一个来自Apache DocumentRoot的特定目录(称为“客户端”),由Apache处理,其余部分由Tomcat处理。 所以我已经在某个server.com:8080上运行了Java应用程序,并且客户机目录位于DocumentRoot目录中,Apache运行在80端口上.Java应用程序被configuration为在/上运行。
这是我的httpd.conf中的内容
DocumentRoot "/usr/local/share/www/" ProxyPass / http://someserver.com:8080/ ProxyPassReverse / http://someserver.com:8080/
代理的这部分工作,但我仍然在任何东西在http://someserver.com/client 404。
我应该如何去正确地设置这个设置?
您可以添加一个排除! 语法,例如:
.... ProxyPass /client ! ProxyPass / http://someserver.com:8080/ ProxyPassReverse / http://someserver.com:8080/