Showing posts with label Tomcat. Show all posts
Showing posts with label Tomcat. Show all posts

Wednesday, March 20, 2013

How to remove 8443 port in URL in tomcat

tomcat's Default https port is 8443

if we connect to 8443 Port

example https://www.xxxx.com:8443/web.........

as you can see 8443 exist in URL

The soulution to hide is
use Default https port : 443




server.xml


<Connector port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="443" />




<Connector port="443" protocol="HTTP/1.1" SSLEnabled="true"
               maxThreads="150" scheme="https" secure="true" keystoreFile="xxxxx" keystorePass="xxxx" keystoreType="xxxx"
               clientAuth="false" sslProtocol="TLS" />
 

Thursday, March 14, 2013

tomcat 7 auth

http://www.avajava.com/tutorials/lessons/how-do-i-use-basic-authentication-with-tomcat.html?page=1