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

how to setup multiple websites using the same ip address

I would like to setup multiple websites on the same Mac Mini Server. I have 1 IP address from my ISP and am using a Dynamic DNS service to point my domain names to my external IP address. My server is assigned 1 internal IP address from my Airport Extreme. What I would like to do is be able to point one domain to one folder on the server (contianing the web server files) and a second domain to point to a different folder on the server. Both domains would be using port 80. How can I do this with 10.8 Server and a single external IP address?

Posted on Feb 7, 2013 11:57 AM

Reply
Question marked as Best reply

Posted on Feb 8, 2013 8:21 AM

Simply create new virtual hosts. This is done in the Server App. Apple calls them Web Sites. Simply define a new site, setting the fully qualified host name in the domain name field. Then select the site root in the Store Site Files In field.


The Apache web server will read each http request. The request will contain the host name that the user is asking for. Apache will parse that information and route the viewer to the correct virtual host.

2 replies
Question marked as Best reply

Feb 8, 2013 8:21 AM in response to Luminosity5

Simply create new virtual hosts. This is done in the Server App. Apple calls them Web Sites. Simply define a new site, setting the fully qualified host name in the domain name field. Then select the site root in the Store Site Files In field.


The Apache web server will read each http request. The request will contain the host name that the user is asking for. Apache will parse that information and route the viewer to the correct virtual host.

Mar 1, 2013 7:02 AM in response to Strontium90

Actually, this has been working for me as long as I did not use SSL.


When using SSL, all requests were pointing at the same domain name. I have tried to use two different Ethernet interfaces with two different IP addresses but it did not work either and always pointed to the domain name with the smaller IP address.


Any help would be welcome.

how to setup multiple websites using the same ip address

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