This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
amar mahtani
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Pie
Posts: 20768
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64631
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
amar mahtani
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Pie
Posts: 20768
30
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Okay. So, to repeat, have you registered your domain name with the registrar for the "xyz" top-level domain?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic