0
我有tomcat的背後有以下配置Apache:apache的mod_proxy的ProxyPassReverse Location頭
ServerName someapp.com
ProxyPass/http://localhost:8080/someapp/
ProxyPassReverse/http://localhost:8080/someapp/
一切工作正常,直到tomcat的響應報頭包含如下:
Location: /someapp/foo
它會導致404或500,因爲瀏覽器轉到「http://someapp.com/someapp/foo」而不是「http://someapp.com/foo/」
我做錯了什麼?