任何人都可以告诉我这是什么问题:
有一个与上下文移动运行的tomcat上的应用程序,我们希望它在URL m.example.com的根上下文中可用,我认为这将做的工作,但它不是真的,每次我把这个url的请求一个/手机后面这样几个请求m.example.com最后的请求可能看起来像m.example.com/mobile/mobile/mobile/mobile/
<VirtualHost *:80> ServerName m.example.com ServerAlias m.example.com ProxyRequests Off ProxyPreserveHost On ProxyPass / http://localhost/mobile/ ProxyPassReverse / http://localhost/mobile/ <Proxy http://localhost/mobile/*> Order deny,allow Allow from all </Proxy> </VirtualHost>
感谢所有的答案。
尝试添加
ProxyPass /mobile !