tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave <javao...@yahoo.com>
Subject how to auto redirect to https from http
Date Thu, 07 Feb 2008 13:53:47 GMT
Hi,
  when user types http://www.mydomain.com, how to redirect to secure url https://www.mydomain.com?
 I know that a servlet filter can do that. Is there an easier way?
   
  In server.xml,  redirectPort="8443" for port 80, it did not work as I expected.
   
       <Connector port="80" address="${jboss.bind.address}"
         maxThreads="250" strategy="ms" maxHttpHeaderSize="8192"
         emptySessionPath="true"
         enableLookups="false" redirectPort="8443" acceptCount="100"
         connectionTimeout="20000" disableUploadTimeout="true"/>
      
        <Connector port="8443" address="${jboss.bind.address}"
           maxThreads="100" strategy="ms" maxHttpHeaderSize="8192"
           emptySessionPath="true"
           scheme="https" secure="true" clientAuth="false"
           keystoreFile="${jboss.server.home.dir}/keystore"
           keystorePass="123456" sslProtocol = "TLS" />

  Thanks for help.
   
  Dave

       
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message