aspose file tools*
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 Java 8 in Action this week in the Java 8 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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to change localhost with myAppliaction in the URL
 
Similar Threads
How to change port to 80from 8080
How to run a application
in server.xml how to make change in "Host" tag
how to run application
where to map the domain name in Tomcat?