Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Routing different subdomains to different servers

Hello all,

Just setup my Leopard server 🙂 Now wondering if it can do this..

Essentially, I have a few servers at my house running various servers. I have a domain name setup going to my house - I'd like to use subdomains of that domain to direct to different servers from the internet. The diagram explains this better - http://au.centralogn.com/dan/Picture2.png

If it can do that, what do I need to setup? I setup my server in advanced mode.

Cheers!

Mac OS X (10.5.1)

Posted on Dec 27, 2007 9:21 AM

Reply
3 replies

Dec 27, 2007 9:39 AM in response to Daniel Lieb1

do you have a router or firewall between you and the internet? you should, if you don't already.

what kind of services do you plan to access from "outside?"

if you're serving web pages from each server and want to access each, you can edit the apache config to forward requests to the appropriate servers.

if you want to access afp or other services, you'll need to do some port forwarding on a firewall/nat box to accomplish this.

do you have multiple static (or dynamic) ips for each machine involved, or do you share a single ip?

please post more details on your network setup and which services you plan to make available on the wan side.

Dec 27, 2007 9:45 AM in response to foilpan

I have a Linksys router, wrt54g. Willing to replace if needed.

Everything, I want to be able to run different websites on each server - but other services as well. For example, testing different mail servers for each subdomain. So it's not a matter of splitting the ports among the servers - I want each host to be completely seperate. I know this sounds very confusing - and I'm not even sure if it's possible.

Single internet connection, single WAN IP.

If not possible, just say so 🙂

Cheers!

Dec 28, 2007 2:33 AM in response to Daniel Lieb1

Do you mean subdomains like this:


(server_a.)maindomain.com

(server_b.)subdomain1.maindomain.com

(server_c.)subdomain2.maindomain.com


http (like foilpan described it) - should be easier than mail.


I might be possible if you first setup the public DNS so the maindomain and it's subdomains all point to the same mailserver/public IP MX pointer hostname/IP and then your Internal DNS setup so the subdomains and the mailserver on the "maindomain" machine forwards smtp to the correct subdomain.

Internal DNS setup something like this:

maindomain.com MX 0 server_a.maindomain.com.

subdomain1.maindomain.com MX 0 server_b.subdomain1.maindomain.com

subdomain2.maindomain.com MX 0 server_c.subdomain2.maindomain.com


What's needed on the maindomain mailserver so it will forward to the right subdomain - I don't know.

Routing different subdomains to different servers

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.