我已将我当前的网站(从 JBOSS7)移植到 Wildfly。但是使用 wildfly,我无法在 firefox 和 Chrome 中维护 HTTPSession。Wildfly Undertow 实现是否有任何问题,或者除了默认配置之外,我是否需要为此进行任何其他配置。
旁注:我的上下文在 HTTPS 重定向中,以下是我的 Standalone.xml 文件的片段。
<security-realm name="MyRealm">
<server-identities>
<ssl>
<keystore relative-to="jboss.server.config.dir" path="\.keystore"
keystore-password="changeit"/>
</ssl>
</server-identities>
</security-realm>
</security-realms>
<subsystem xmlns="urn:jboss:domain:undertow:1.1">
<buffer-cache name="default"/>
<server name="default-server">
<http-listener name="default" socket-binding="http"/>
<https-listener name="https" socket-binding="https" security-realm="MyRealm"/>
<host name="default-host" alias="localhost">
<location name="/" handler="welcome-content"/>
<filter-ref name="server-header"/>
<filter-ref name="x-powered-by-header"/>
</host>
</server>
<servlet-container name="default">
<jsp-config/>
</servlet-container>
<handlers>
<file name="welcome-content" path="${jboss.home.dir}/welcome-content"/>
</handlers>
<filters>
<response-header name="server-header" header-name="Server" header-value="WildFly/8"/>
<response-header name="x-powered-by-header"
header-name="X-Powered-By" header-value="Undertow/1"/>
</filters>
</subsystem>
Any help is highly appreciated.
Thanks in advance.
Venkat