Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'mod_alias should also work' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
mod_alias should also work
Authored by: Vhalkyrie on Oct 30, '02 12:31:57AM

Yes, the preferred way to do this is through apache with an alias. Go to /private/etc/httpd/users. In that directory should be the individual conf files for each user. Open the files and add the line:

Alias /name "/Users/name/Sites"

Where name is the user's name. Restart apache.

If you have a small number of users, edit by hand. If you have a large number of users, script it! These files are automatically created when you add a new user, so there's probably a way to edit it at the source so you don't have to do this every time you add a new user.



[ Reply to This | # ]