2014-09-02 183 views
1

我已經將我目前的網站(從JBOSS7)移植到wildfly。但使用wildfly,我couold沒有維護HTTPSession在Chrome瀏覽器中的火狐&。野蠅Undertow實現有任何問題,或者除了缺省配置之外,是否需要爲此進行任何其他配置?HTTPS重定向蜻蜓Undertow

Side注意:我的上下文位於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 

回答

3

將「redirect-socket =」https「」添加到您的http連接器。