Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to map a default url to another?  RSS feed

vignesh dhakshinamoorthy
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!