Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Apache Help

Apache Help
Thread Tools
Junior Member
Join Date: Jul 2002
Location: Australia
Status: Offline
Reply With Quote
Jul 21, 2003, 02:49 AM
 
Hey all,
I'm using apache 2.0.46 and I was wondering if there is a way to specify the DocumentRoot to change for different users..

EG.
www (default) - /Users/syphor/Sites
syphor (admin) - /
mac-boy (user) - /Users/mac-boy/Sites
     
Senior User
Join Date: Nov 2001
Location: State of Denial
Status: Offline
Reply With Quote
Jul 21, 2003, 12:23 PM
 
That wouldn't really make much sense, since DocumentRoot specifies the root directory when actually viewing the Web site...and since httpd only runs as one user (and since there is no way to specify what UNIX user a given HTTP session has in this way), there wouldn't be any reason to do this in the first place.

Of course, perhaps I don't understand what you're trying to do...
[Wevah setPostCount:[Wevah postCount] + 1];
     
Mac Elite
Join Date: May 1999
Location: San Jose, CA
Status: Offline
Reply With Quote
Jul 21, 2003, 03:11 PM
 
Originally posted by Syphor:
Hey all,
I'm using apache 2.0.46 and I was wondering if there is a way to specify the DocumentRoot to change for different users..

EG.
www (default) - /Users/syphor/Sites
syphor (admin) - /
mac-boy (user) - /Users/mac-boy/Sites
Unless you mean virtual hosts, so that www.yourdomain.com serves content out of /Users/syphor/Sites, 'syphor.yourdomain.com' serves content out of / (DO NOT do this!), and mac-boy.yourdomain.com serves content out /Users/mac-boy/Sites

If so, that's easy, and is well documented in the apache docs at http://localhost/manual/vhosts/index.html
Gods don't kill people - people with Gods kill people.
     
Senior User
Join Date: Nov 2001
Location: State of Denial
Status: Offline
Reply With Quote
Jul 22, 2003, 12:34 PM
 
What Camelot said, also.

;]
[Wevah setPostCount:[Wevah postCount] + 1];
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 02:11 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2