0
I have a Mac Mini server whose IP is tracked by a dyndns account.
With some port forwarding from an Airport Extreme Base station, I can easily access mydomain.dyndns.org
from anywhere outside my LAN.
Now, I would like to be able to access other stuff from my LAN directly from anywhere else, using a browser. For example, a Windows server running at the same time another web server on port 80 but also a bit torrent web interface on port 9091. The only problem is that I would like these to be accessible from normal http (from the outside world, at least).
Like mywindowswebpage.mydomain.dyndns.org
and mybittorrent.mydomain.dyndns.org
I believe what I need is virtual hosting, by editing the httpd.conf
file on the server that resolves the main domain (which is the mac mini). However, in order to allow the subdomains to resolve to my IP address, I know I also need more than just that.
One option would be getting a pro account at dyndns to allow wildcards.
My questions are:
Using my Mac Mini Server, can I set up my own DNS server so that when users from the outside world type
mysubdomain.mydomain.dyndns.org
it would query my own DNS and route the requests to the correct machine (or indeed I'll have to pay a registrar that accepts wildcards, otherwise my subdomains will never ping)?How do I set up my virtual hosts on
httpd.conf
so thatmysubdomain.mydomian.dyndns.org
resolves to my Windows web server (on port 80) andmybittorrent.mydomain.dyndns.org
resolves to the same machine, but whose web interface is on port 9091?Is there any setup needed on these services (any conf files to modify on the bit torrent web interface, for example) in order to allow these things to run??
I am running Lion with Lion Server and my IP is dynamic.
In general this will not work. Clients usually establish a connection using the resolved IP address. Since all of your intended domains will resolve to the same address, it will not make a difference. Virtual hosts are a lucky exception. – artistoex – 2011-12-12T10:52:42.393