How to point a DomainName to an Apache Tomcat Server?

梦想与她 提交于 2020-01-15 12:19:07

问题


I have a domain name and I want to point it to a local apache tomcat server that I have installed and started on my machine(static IP)

What kind of configuration I need to do with the DNS(at the website of the domain name company) and tomcat configuration files - I assume!

PS. I am using Tomcat6 on a linux machine with static IP

Many thanks...


回答1:


If the local apache server has a routable IP address, then just set up the A record on the domain name DNS server through their web-based management interface.

If the local apache server is on a private IP (i.e. 10.x.x.x, 172.{16-31}.x.x or 192.168.x.x) then you cannot accomplish this without running a local caching DNS server. Those addresses are non-routable. If this is the case AND you have configuration access to the firewall/router doing NAT you could configure port forwarding, in which case the DNS entry for the server would point to your firewall's public IP address.



来源:https://stackoverflow.com/questions/1644232/how-to-point-a-domainname-to-an-apache-tomcat-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!