homepage Welcome to WebmasterWorld Guest from 54.198.139.141
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld
Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
DocumentRoot for user's directories
I'm having trouble figuring this one out
cbooth7575




msg:910281
 7:49 am on Jul 20, 2002 (gmt 0)

Hey everybody,

I'm just setting up the Apache server on Mac OS X, and I'm having a problem...

I'm using the include() function in PHP, and in order to make my code portable, I'm including based on the Apache variable DocumentRoot.

What I want to do is be able to set the DocumentRoot variable differently for each user's directory, so that, for example:

localhost/~user1 - their DocumentRoot is /home/usr/user1/html

and

localhost/~user2 - their DocumentRoot is /home/usr/user2/html

Right now, DocumentRoot is global for everything, and it's based on the file locations of localhost/, which isn't in a user's directory.

Any ideas??? Can I do it globally, or should I be doing this in a .htaccess file for each user, and in either case, how do I do it???

Thanks in advance...

 

SmallTime




msg:910282
 8:21 am on Jul 20, 2002 (gmt 0)

I am sure someone will tell you exactly how to do it, but to get you started, look for VirtualHomePages.conf in the vhosts directory in httpd/conf I haven't tried it, or would give more detail

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved