• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 831
  • Last Modified:

eliminate "localhost:8080" to open tomcat server

Hi;

I like to modify this link to open tomcat server "http://localhost:8080/.../..." to be like this "http:localhost" but i don´t know how, anybody can help me with this.

Wich xml do i have to modify or something like that?

Thanks.
0
tarkust
Asked:
tarkust
4 Solutions
 
DeanHorakCommented:
You should change Tomcat's port address to 80 instead of 8080. This is controlled by the server.xml file in the Tomcat "conf" directory.

Look for an entry similar to :

<!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -->
          <Connector port="8080"
                     maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
                     enableLookups="false" redirectPort="8443" acceptCount="100"
                     debug="0" connectionTimeout="20000"
                     disableUploadTimeout="true" />

and change <Connector port="8080" to <Connector port="80"

0
 
mukundha_expertCommented:
Easier way is to specify the port while installing tomcat.
It will prompt for the port during the installation you can specify it as 80.

cheers,
Mukundh
0
 
bloodredsunCommented:
There is one more method and it is the method used by many companies running serverside java components such as JSPs and Servlets, it's a little more complex but is the optimum solution.

It is to install Apache Http Server on port 80 and use mod_jk 1.2 http://tomcat.apache.org/download-connectors.cgi to connect Tomcat to Apache. This means that Apache serves the static content such as html and images while Tomcat serves the java components. This gives you a performance boost of about 20X for static content.
0
 
Mayank SAssociate Director - Product EngineeringCommented:
Following the last approach, it basically means that the browser will still connect to port 80 on the server but all your HTML/ JSP requests will be served from there as required.
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now