wood burning stoves 2.0*
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
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: 18135
    
    8

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: 60057
    
  65

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: 18135
    
    8

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
 
Similar Threads
accessing tomcat default page
Unable to access tomcat5.5.30 using IP Address[but still able to access using http://localhost:8080]
Submit Methods pulling same data
Using IPAddress and localhost
Accessing Tomcat 6.0 using an ipaddress