Possible Duplicate:
How to use DNS to redirect domain to specific port on my server
My web application is running on myserver.mydomain:10000 I would like to make it available on the intranet as mywebapp.mydomain.
Reading Forward port to another Ip/port, I have looked into rinetd, but I don't fully understand how I can achieve my goal:
- create a cname alias mywebapp --> myserver on the name server
- run rinetd on myserver, redirecting port 80 to 10000 ?!?
That would redirect all http traffic.
I seem to have a gap in my understanding. Can anyone help me ?
If you don't want to create another IP, then all you can do is install a reverse http proxy on the main IP and a name based virtual host to route the traffic using mod_proxy.
Here is how you can do it with apache, almost any http server can do it, other popular alternatives are squid, nginx, lighthttpd, etc.
DNS only maps hostnames to IP addresses, it knows nothing and can't do anything about ports.
A solution to your need could be using a NAT router/firewall to forward you'r public IP's port 80 to the internal server IP's port 10000.
I assume you're wanting just one site redirected as such, and you run other sites on port 80 already? If so, and you are not using HTTPS (SSL), then you can either set up Apache to handle this domain as mentioned, or you can teach Apache to do the forward itself, to port 10000.
I know know what server OS or http server you are using though... so can't help more.