Dear Friends,
I am using
Tomcat version 6. In my web application , only SSL port 7443 is being listened.
But, the problem I am facing is:
When I access my web application using URL
https://hostname:7443/ ---everything works fine.
But,
When I access my web application using URL
http://hostname:7443/ (no https here) . It returns some garbage value.
I am not able to comprehend why it is returng garbage response. Why even it is returning any response for http?
Now, What I am looking for is , if any user , by mistake , use http instead of https, it should redirect to https automatically. Is it possible?
Please note, port should be same in case of redirection as well which is 7443 here.
My server.xml excerpts are like:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
<!--
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
-->
<!-- A "Connector" using the shared
thread pool-->
<!--
<Connector executor="tomcatThreadPool"
port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
-->
<!-- Define a SSL HTTP/1.1 Connector on port 8443
This connector uses the JSSE configuration, when using APR, the
connector should be using the OpenSSL style configuration
described in the APR documentation -->
<!-- GW UI will run on 7443 for non-VSP environment -->
<Connector port="7443" protocol="HTTP/1.1" SSLEnabled="true"
clientAuth="want" truststoreFile="/tmp/xyz.jks" truststorePass="adfs"
maxThreads="150" minSpareThreads="2" maxSpareThreads="5"
enableLookups="false" disableUploadTimeout="true"
acceptCount="100" debug="0" scheme="https" secure="true"
sslProtocol="TLS" keystoreFile="/tmp/cert/acb.jks" keystorePass="dfsdf"
ciphers="SSL_RSA_WITH_RC4_128_MD5, SSL_RSA_WITH_RC4_128_SHA, TLS_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_DSS_WITH_AES_128_C
+++++++++++++++++++++++++++++++++++++++++++++++++
Any help is highly appreciated.