Apache URL Mapping

Discussion in 'Web Design and Development' started by randie, Mar 13, 2009.

  1. randie macrumors newbie

    Joined:
    Mar 13, 2009
    #1
    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/" ?
     
  2. randie thread starter macrumors newbie

    Joined:
    Mar 13, 2009
    #2
    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
     

Share This Page