Could you possibly point it to a HTML document that simply redirects to the 8080 port?
Well I was trying to avoid using ports in the domain name. The issue was that I had two servers under a single DNS entry using two different ports. 80 and 8080. I wanted to type in a subdomain to go to the 8080.Originally Posted by parityboy
Domains point to IP addresses or are aliases for other domains. URIs are used to point to domain/IPaddress & port combinations.
So if your domain is cameras.mydomain.com and your camera is on port 6060, you'd set the domain to your external IP address/dynamic DNS name and point your browser or other software at protocol://camera.mydomain.com:6060 where protocol is http or whatever.
Damn good idea.
Well GoDaddy doesn't offer parking on sub-domains, so I can't host an HTML doc with them. But I could point the sub-domain to my server with a HTML doc that re-directs...right?
There are certain types of A records that will redirect to ports, and do a webhop. You may want to see how you can do that with them, then you can just make the DNS record redirect to port 8080. You can even do it in the background, so in firefox it would just show security.domain.com even though you've been redirected to a new port. Similar to a CNAME.
My web servers are all apache2.Originally Posted by parityboy
Yes, you could do that. A better way might be to set up your existing web server to handle the domain/port combination so that a call to security.mydomain.com will redirect to mydomain.com:8080; it wouldn't be an HTML document as such, the server itself would send the redirect.
Make sure that ports 80 and 8080 are available from outside your network and you should be good to go. Which web server are you using?
it's very easy in apache:Originally Posted by jibesh
Give this Apache doc a read. It explains how to use virtualhosts in Apache so you can redirect requests to different ports. Scroll down to the section "Running different sites on different ports."
I've done this successfully in IIS but never tried it in Apache. Let us know how it works out.
http://httpd.apache.org/docs/2.0/vhosts/examples.html
RewriteEngine on
rewritecond %{http_host} ^webcam.domain.com [nc]
rewriterule ^(.*)$ http://webcam.domain.com:8080/$1 [r=301,nc]
I already employ several Vhosts on my system. I'd prefer not to mix my site with my security camera thoughOriginally Posted by Plan9
it's very easy in apache:
Code:
if that's dumped into the .htaccess of your main domain, then you wouldn't even need to create a vhost (of course a vhost would be tidier from a sys admin perspective)Code:RewriteEngine on rewritecond %{http_host} ^webcam.domain.com [nc] rewriterule ^(.*)$ http://webcam.domain.com:8080/$1 [r=301,nc]