代理后面的 Wildfly 14 的 RewriteRule -> 404
RewriteRule for Wildfly 14 behind a proxy -> 404
我在代理后面的 wildfly 14 上有一个 Vaadin 10 应用程序 运行(来自我的托管商),但我无法到达部署我的应用程序的根路径 (404)。如果我在特定路径上部署,例如“/example”,我会到达我的应用程序。
我猜是 RewriteRule。这是我的实际规则:
RewriteEngine on
RewriteRule ^(.*) http://localhost:8080/ [P]
还有更多的困惑:如果我请求 mydomain.com/example/ 一切正常。请求 mydomain.com/example 导致 localhost:8080/example/.
如果我将规则更改为:
RewriteRule ^(.*) http://localhost:8080/example/ [P]
和部署在根路径一样
使用非 vaadin 应用程序,例如 https://github.com/kumar-shantanu/wildfly-demo-war,我在 RewriteRule 中更改为它的路径,一切正常。
我试了很多,老实说,我不太了解配置RewriteRule
会是什么?
ProxyPass 做的工作:
ProxyPass http://localhost:8080/
ProxyPassReverse http://localhost:8080/
我在代理后面的 wildfly 14 上有一个 Vaadin 10 应用程序 运行(来自我的托管商),但我无法到达部署我的应用程序的根路径 (404)。如果我在特定路径上部署,例如“/example”,我会到达我的应用程序。
我猜是 RewriteRule。这是我的实际规则:
RewriteEngine on
RewriteRule ^(.*) http://localhost:8080/ [P]
还有更多的困惑:如果我请求 mydomain.com/example/ 一切正常。请求 mydomain.com/example 导致 localhost:8080/example/.
如果我将规则更改为:
RewriteRule ^(.*) http://localhost:8080/example/ [P]
和部署在根路径一样
使用非 vaadin 应用程序,例如 https://github.com/kumar-shantanu/wildfly-demo-war,我在 RewriteRule 中更改为它的路径,一切正常。
我试了很多,老实说,我不太了解配置RewriteRule
会是什么?
ProxyPass 做的工作:
ProxyPass http://localhost:8080/
ProxyPassReverse http://localhost:8080/