This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Tomcat and the fly likes How to change localhost with myAppliaction in the URL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "How to change localhost with myAppliaction in the URL" Watch "How to change localhost with myAppliaction in the URL" New topic
Author

How to change localhost with myAppliaction in the URL

Gaurav Chhabras
Ranch Hand

Joined: Sep 21, 2005
Posts: 126
Hi

I have changed the port to 80 from 8080, successfully, now what i want is that like instead of writting -:

http://localhost/abc , i will write-:

http://myApplication/abc , that what i want is in place of

writting "localhost" i have to write "myApplication" and it will work as like as it works normally with localhost.
Anupam Bhatt
Ranch Hand

Joined: Mar 12, 2004
Posts: 81
Well i may be wrong.
but as far as my knowledge goes "localhost" or any other name denotes the servername, and hence it HAS to be the server name and nothing else. Should be either "localhost" or letz say "gaurav" if the server is named as "gaurav".

Anybody please correct me if i am wrong !

Thanks,
Anupam Bhatt
 
wood burning stoves
 
subject: How to change localhost with myAppliaction in the URL
 
Similar Threads
How to run a application
How to change port to 80from 8080
how to run application
in server.xml how to make change in "Host" tag
where to map the domain name in Tomcat?