tomcat - redirect https://localhost:8080 request to https://localhost:8443 -
i have application running in tomcat server.
i using following connectors:
for http:
<connector port="8080" protocol="http/1.1" redirectport="8443" connectiontimeout="20000" />
for https:
<connector port="8443" protocol="http/1.1" sslenabled="true" maxthreads="150" scheme="https" secure="true" clientauth="false" sslprotocol="tls" keystorefile="${keystore.path}" keystorepass="${keystore.password}"/>
with this, http://localhost:8080 , https://localhost:8443 working fine want redirect https://localhost:8080 https://localhost:8443. how can done?
since port 8080 plain text http not able understand https. means request http://...:8080
succeed request https://...:8080
not. since redirect requires first send request , response , since fails when trying use https on port enabled plain http redirect not succeeed.
only if https enabled on port 8080 https://
redirect succeed. http://
redirect stop because impossible run both http , https on same port tomcat.
Comments
Post a Comment