homepage Welcome to WebmasterWorld Guest from 54.146.190.193
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
cwhoward1

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.

Chuck

 

encyclo

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:

/home/site1/htdocs
/home/site1/cgi-bin
/home/site1/logs

/home/site2/htdocs
/home/site2/cgi-bin
/home/site2/logs

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