Linode Forum Index Linode Forum
Linode Community Forums
 


How to set DNS for IP:8080 ?

Click here to go to the original topic

 
       Linode Forum Index -> Linux Networking
Author Message
gsdev



Joined: 28 Jan 2012
Posts: 2

Posted: Sat Jan 28, 2012 2:15 pm    Post subject: How to set DNS for IP:8080 ?  

Hello the all!
I installed the tomcat in my server. However this pointing for ip:8080. I configure my DNS for my domain. But, when I access the my domain, will for ip and no for ip:8080

What do I do regarding this?

Thanks you a lot!
Back to top  
sednet



Joined: 17 Mar 2004
Posts: 212
Location: Europe

Posted: Sat Jan 28, 2012 3:30 pm    Post subject: Re: How to set DNS for IP:8080 ?  

gsdev wrote: Hello the all!
I installed the tomcat in my server. However this pointing for ip:8080. I configure my DNS for my domain. But, when I access the my domain, will for ip and no for ip:8080

What do I do regarding this?

Thanks you a lot!

DNS lists IP addresses but not ports. Setup your server to use port 80 or tell your clients to use ':8080' at the end of the URL. Putting your web server on port 80 is the better option.
Back to top  
mnordhoff



Joined: 03 May 2008
Posts: 451

Posted: Sat Jan 28, 2012 3:56 pm    Post subject:  

If you already have a web server running on port 80, you can configure it to operate as a reverse proxy and direct certain subdomains or pages to Tomcat. See its documentation.
Back to top  
gsdev



Joined: 28 Jan 2012
Posts: 2

Posted: Sat Jan 28, 2012 10:09 pm    Post subject:  

No I can understand. Please, can me pass more info ?
Back to top  
zunzun



Joined: 18 Feb 2005
Posts: 445
Location: Birmingham, Alabama USA

Posted: Sun Jan 29, 2012 9:03 am    Post subject:  

DNS has nothing to do with ports - the main use of Domain Name Service (DNS) is to map domain names to Internet Protocol (IP) addresses. When DNS receives "linode.com" it maps that to an IP address like 72.14.180.202, for example.

Browsers then use the IP address to request web pages. If the request is http, such as http://linode.com, the request is made using port 80 by default. If the request uses https, such as https://linode.com, the request is made using port 443 by default and should be encrypted using Secure Socket Layer (SSL).

You can tell browsers not to use the default ports, for example http://linode.com:8080 - but there must be some software on the server listening for requests on that port or you will get no response.

One problem with using non-standard ports is that many firewalls, such as the outgoing firewall where I work, will block non-standard ports. For this reason you might be better off to use the standard port 80.

James
Back to top  
jebblue



Joined: 23 May 2010
Posts: 112

Posted: Sun Jan 29, 2012 2:46 pm    Post subject:  

If you want Tomcat to run on 8080 but to be visible on 80 use Apache on 80 and use ProxyPass and ProxyPassRevserse to point to your Tomcat running on 8080.

http://httpd.apache.org/docs/2.1/mod/mod_proxy.html
Back to top  
 
       Linode Forum Index -> Linux Networking
Page 1 of 1