• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to map a default url to another?

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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, http://blahblah.com.

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 www.coderanch.com, it will look up the DNS, re-directs to the site.
Though i see www.coderanch.com 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 http://www.blahblah.com 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic