我试图使用apache作为glassfish和openfire的前端。 我的httpd.confconfiguration是这样的:
ProxyPass /proxy http://localhost:7070/http-bind/ ProxyPassReverse /proxy http://localhost:7070/http-bind/ ProxyPass /app http://localhost:8080/app ProxyPassReverse /app http://localhost:8080/app
到目前为止,这对我来说工作得很好, domain.com/app连接到我的glassfish服务器, domain.com/proxy连接到我的openfire服务器。
我真正想要的是URL为domain.com ,并将用户引导至glassfish,但对于domain.com/proxy仍然指向openfire。 这可能吗?
这不行吗? 我认为,只要你有更具体的情况,你应该可以的话,代理通行证指令被parsing。
ProxyPass /proxy http://localhost:7070/http-bind/ ProxyPassReverse /proxy http://localhost:7070/http-bind/ ProxyPass / http://localhost:8080/app ProxyPassReverse / http://localhost:8080/app
这里提到:
http://www.2020media.com/blog/2010/02/excluding-directories-in-ajp-proxypass/