2014-09-02 2 views
1

J'ai porté mon site web actuel (de JBOSS7) à wildfly. Mais en utilisant Wildfly, je ne peux pas maintenir le HTTPSession dans Firefox & Chrome. Y at-il un problème avec la mise en œuvre de Undertow de wildfly ou devrais-je devoir faire n'importe quelle configuration supplémentaire pour ceci indépendamment de la configuration par défaut. Side Note: Mon contexte est dans la redirection HTTPS, voici l'extrait de mon fichier standalone.xml.Redirection HTTPS dans wildfly Undertow

 <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 

Répondre

3

Ajoutez "redirect-socket =" https "" à votre connecteur http.

Questions connexes