This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Use hostname such as Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Use hostname such as "abc.myname.xyz" instead of "localhost:8080" to access Tomcat" Watch "Use hostname such as "abc.myname.xyz" instead of "localhost:8080" to access Tomcat" New topic
Author

Use hostname such as "abc.myname.xyz" instead of "localhost:8080" to access Tomcat

amar mahtani
Greenhorn

Joined: Feb 08, 2009
Posts: 7
Hi,
To access the tomcat home page or any web application, I am currently using http://<ipaddress>:8080 or http://<ipaddress>:8080/<project context>.
I would like to know if there is a way to replace the "<ipaddress>:8080" with a more proper host name such as "abc.myname.xyz". I was told I could use the Apache server along with Tomcat to achieve this. But I am not sure how to implement it. If you could please help me in figuring this out, it would be awesome!! Thank you.

Regards,
Amar
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 19351
    
  10

First of all, have you registered the domain "abc.myname.xyz"? And is it configured via DNS to direct requests to your Apache server?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 62139
    
  68

The use of Apache is not necessary.

As Paul pointed out, this has little to do with your server configuration, and more a matter of external setup.

Visiting a registrar such as GoDaddy is the first step...


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
amar mahtani
Greenhorn

Joined: Feb 08, 2009
Posts: 7
Hi Paul, I am sorry I had the wrong information regarding Apache. For my requirements I don't actually need to use Apache at all. I just wanted a more intuitive name in order to access tomcat, for that purpose I would need to create a new host name in the DNS and change 8080 to 80 and I am done. However thanks for replying to my post.

Regards,
Amar
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 19351
    
  10

Okay. So, to repeat, have you registered your domain name with the registrar for the "xyz" top-level domain?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Use hostname such as "abc.myname.xyz" instead of "localhost:8080" to access Tomcat