• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
  • Tim Holloway
  • Carey Brown
  • salvin francis

change from localhost

Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
Well, servlet mapping could be done. i.e I was able to do te following
Original Path:
Which was mapped to :
But what i really need to do is:
How do I go about on this..??
Tried tweaking server.xml but no result.
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Umm... first you need to register a domain, and have it point to the IP address of the box on which you are runnin tomcat.

If you're only running an intranet site, then you can get away with entering your domain into your internal DNS, and then it won't matter if the rest of the world doesn't see it.

To get Tomcat to respond to port 80 (the default, so that you won't need to type :80) is set in server.xml. Just search in that file for the current port (8080) and replace it with 80.

If you want it to respond to a certain 'named host', then configure a Host with that name, also in server.xml. I believe Tomcat needs a 'default' Host, so you will need at least two host entries now.
Make yourself as serene as a flower, as a tree. And on wednesdays, as serene as this tiny ad:
create, convert, edit or print DOC and DOCX in Java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!