Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

randie

macrumors newbie
Original poster
Mar 13, 2009
2
0
In Mac OS X 10.5.6 (which comes with Apache 2 installed and configured), how does apache know to map the URL "http://localhost/~my_name/" to the directory "/Users/my_name/Sites/" ?
 
Here's the answer ...

UserDir directive is set in /private/etc/apache2/extra/httpd-userdir.conf which is included in httpd.conf .

[01:17 43] grep -i userdir /private/etc/apache2/extra/httpd-userdir.conf
# Required module: mod_userdir
# UserDir: The name of the directory that is appended onto a user's home
UserDir Sites
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.