homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / WebmasterWorld / New To Web Development
Forum Library, Charter, Moderators: brotherhood of lan & mack

New To Web Development Forum

single IP & multiple registered domains in APACHE

5+ Year Member

Msg#: 3923060 posted 2:37 pm on May 30, 2009 (gmt 0)

Given two or more registered domain names pointing to a single static IP, what is the best way to direct the incomming requests to the individual directories?
Clearly there is no need for Virtual sub domains - but what is the direct way to set this up?

Thanks for any suggestions.




WebmasterWorld Senior Member encyclo us a WebmasterWorld Top Contributor of All Time 10+ Year Member

Msg#: 3923060 posted 4:40 pm on May 30, 2009 (gmt 0)

Welcome to WebmasterWorld cwhoward1 :) My preferred method is to create a new user for each site and place each site within it's own user's home directory. For example the paths would be:



Then set up Name-based Virtual Hosts [httpd.apache.org] for each site. Each user gets its own ssh/FTP access and individual password. (I assume you are setting things up on a Linux/FreeBSD or other Unix server.)

What I hate the most is nested sites, ie. placing document roots for supplementary sites within the document root of the primary site.

Global Options:
 top home search open messages active posts  

Home / Forums Index / WebmasterWorld / New To Web Development
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved