This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Tomcat and the fly likes how to remove the port number from url Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "how to remove the port number from url" Watch "how to remove the port number from url" New topic
Author

how to remove the port number from url

kumar uragonda
Greenhorn

Joined: Jul 28, 2010
Posts: 1



Hi all,
I am using Tomcat 5.5 server to run my JSP application.When i tried to run the application,i have to give the URL like this
http://58.68.55.221:8082/NovireApplication/
but actually i want the URL to be given like this
http://NovireApplication.com/

Any solution for the above???
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Configure it to run on the default port?
Liangfeng Ren
Greenhorn

Joined: Jul 28, 2010
Posts: 7
Modify tomcat configuration by setting port number to 8000.


Thanks
Liangfeng
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

80.
Rahul Nair
Ranch Hand

Joined: Dec 01, 2007
Posts: 138
Hey, Welcome to JavaRanch!

You need to update your server.xml file which is in "../tomcat/conf/server.xml" and replace the connection port value to "80" instead of "8080".
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

What is needed is to buy a domain, define a new Host in server.xml with the domain name, and change default http port to 80


Regards, Rene Larsen
Dropbox Invite
 
wood burning stoves
 
subject: how to remove the port number from url