Can Tomcat be accessed without a port? Currently I have to access Tomcat through my IP plus my port. I would like to be able to access it with just the IP. Would creating a VIP be a solution here?

Luigi Viggiano

Configuring tomcat to run on port 80, that is the default port for web (HTTP)service, you can just specify the hostname in the url address of your browser.

To configure in tomcat the port you have to modify conf/server.xml in the <Connector> tag as follows:


    <Connector className="org.apache.tomcat.service.SimpleTcpConnector">
      <Parameter name="handler" value="org.apache.tomcat.service.http.HttpConnectionHandler" />
      <Parameter name="port" value="80" />
    </Connector>

[Note that on some systems you need to execute Tomcat as root in order to allow access to port 80. -Alex]

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact