Home Forums OS X Server and Client Discussion Web Hosting DIFFERENT domain names on the same Tiger Server

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #364854
    computerpros
    Participant

    How 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 checked

    PROBLEM:
    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!
    Computerpros

    #364869
    computerpros
    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 80

    The Web folder PATH points to each Domain names directory:
    /Library/WebServer/Documents/Domain1
    /Library/WebServer/Documents/Domain2
    /Library/WebServer/Documents/Domain3
    /Library/WebServer/Documents/Domain4

    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.35

    How 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? Neutral

    Thanks a million for your help! Big Grin
    Bill

    #365051
    Dagfinn Kolstad
    Participant

    another 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.

    #365146
    TvE
    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.35

    How 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? Neutral

    Thanks a million for your help! Big Grin
    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…)

    #365504
    chiefgeek
    Participant

    We had the same problem. It was the “*” in the alias section for the site. Get rid of it.

    #365997
    crackmac
    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!

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.

Comments are closed