File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes How to map a default url to another? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "How to map a default url to another?" Watch "How to map a default url to another?" New topic

How to map a default url to another?

vignesh dhakshinamoorthy

Joined: Jan 21, 2009
Posts: 12
Hi i am new to coderanch & please forgive me if this question this question may not come under Tomcat.
It's is a general question related to Servers & URL's.
The Deal
Consider we have a tomcat application running at http://localhost:8080/blahblah.
Now i need to map this to a custom url say,

I'm not a pro but have some basic understanding of all the concepts.

What i know
There is a DNS which will contain a list of all the url mapped to a custom one.
Whenever i type, it will look up the DNS, re-directs to the site.
Though i see in the address bar, internally it will be something else. May be the IP of the server.
But i don't know how to register my IP with a custom name.
Also i know a file called hosts in \windows\system32\drivers\etc\ which contains URL mappings.
Problem i encountered here is that i cannot map port numbers in it.
i can map the url http://localhost:80/blahblah to which is accessible only in my system only.
i cannot do the same for port 8080 as the host file will not accept port numbers.

What i want to know
Can i map my URL to a custom name and access it from everywhere(or atleast within my network)?
Any rancher out there who can help me figure this out?
Any assistance is deeply appreciated.
I agree. Here's the link:
subject: How to map a default url to another?
It's not a secret anymore!