Home › Forums › OS X Server and Client Discussion › Web › Hosting DIFFERENT domain names on the same Tiger Server
- This topic has 7 replies, 7 voices, and was last updated 19 years ago by
crackmac.
-
AuthorPosts
-
January 20, 2006 at 9:06 am #364854
computerpros
ParticipantHow can I host DIFFERENT domain names on the same Tiger Server? I’ve looked everywhere, but I can’t seem to figure it out. My Web server is currently hosting one domain name just fine. Apples Web Admin PDF is almost useless.
DNS INFO:
My new Domain Names are already purchased & registered, and my ISP is taking care of DNS, pointing all of the domain names to my Tiger web servers public IP Address.IN SERVER ADMIN >> WEB Services > Settings Button > Sites Tab, I’ve configured the Domain Names as follows:
Domain Name = domainnamehere.com
Port = 80
IP Address = Any
Web Folder =
/Library/WebServer/Documents/domainnamefolder1/HTML here
/Library/WebServer/Documents/domainnamefolder2/HTML here
/Library/WebServer/Documents/domainnamefolder3/HTML here
Default index files = index.html
The Enable box is checkedPROBLEM:
When I go to any of the new domain names, they all open up the MAIN (1st entered) website, NOT their own individual web page.QUESTION:
What am I doing wrong? What do I need to do to host DIFFERENT Domain Names PUBLICLY on the same Tiger Server? I’ve seen information on setting up “Virtual Hosts” for LOCAL web development, but I can’t seem to figure out how to host DIFFERENT Domain Names PUBLICLY on the same OSX Tiger Server. Help!Thanks so much for your help!
ComputerprosJanuary 21, 2006 at 6:57 am #364869computerpros
Participant[QUOTE BY= macshome] You need to setup a entry in server admin for each site.[/QUOTE]
Hi Josh,
Before I get started…THANK YOU for the GREAT Sessions you guys did at MacWorld!
I thought I did set up an entry. I entered the 4 different domain names in the SITES Tab in Server admin as seen below:
Enabled Domain Name Address Port
yes Domain1.com any 80
yes Domain2.com any 80
yes Domain3.com any 80
yes Domain4.com any 80The Web folder PATH points to each Domain names directory:
/Library/WebServer/Documents/Domain1
/Library/WebServer/Documents/Domain2
/Library/WebServer/Documents/Domain3
/Library/WebServer/Documents/Domain4QUESTION:
What should the IP Address (in the SITES Tab of Server Admin) be for each Domain Name? Public? Private? *?Should the Domain names in DNS all point to the Public IP Address of the Web Server?
Domain1.com —> 68.15.14.35
Domain2.com —> 68.15.14.35
Domain3.com —> 68.15.14.35
Domain4.com —> 68.15.14.35How does a web page request for a different Domain name on the same server magically get routed via Tiger Server to the appropriate directory for the different Domain Names? I’m baffled…it appears to be set up correctly but all requests simply go to the main or 1st entry in the SITES Tab. What am I missing here?
Thanks a million for your help!

BillJanuary 31, 2006 at 8:45 pm #365051Dagfinn Kolstad
Participantanother issue might be www. when u setup the vhosts in serveradmin make shure to use www infront of the domainname if thats what u use. also disabe performance cash this will lead u to port 16080. there is a module called rewrite_module this one have spooked with my tiger servers before try to disable it and restart webserver.
February 3, 2006 at 9:02 pm #365146TvE
Participant[QUOTE BY= computerpros] [QUOTE BY= macshome] You need to setup a entry in server admin for each site.[/QUOTE]
QUESTION:
What should the IP Address (in the SITES Tab of Server Admin) be for each Domain Name? Public? Private? *?Should the Domain names in DNS all point to the Public IP Address of the Web Server?
Domain1.com —> 68.15.14.35
Domain2.com —> 68.15.14.35
Domain3.com —> 68.15.14.35
Domain4.com —> 68.15.14.35How does a web page request for a different Domain name on the same server magically get routed via Tiger Server to the appropriate directory for the different Domain Names? I’m baffled…it appears to be set up correctly but all requests simply go to the main or 1st entry in the SITES Tab. What am I missing here?
Thanks a million for your help!

Bill[/QUOTE]You should read http://httpd.apache.org/docs/1.3/vhosts/index.html to understand Apache and virtual hosts and how to configure httpd.conf (which is what the SA-GUI is doing for you…)
March 2, 2006 at 4:28 am #365504chiefgeek
ParticipantWe had the same problem. It was the “*” in the alias section for the site. Get rid of it.
April 18, 2006 at 6:46 pm #365997crackmac
Participant[QUOTE][u]Quote by: MacTroll[/u]<p>Be careful as the first site selected tends to have an alias of "*" in it.
Make sure that no aliases exist under the "alias" tabs of any of the site configurations and see if that helps.</p>[/QUOTE]
Excellent! Thank you!
-
AuthorPosts
- You must be logged in to reply to this topic.

Comments are closed