Women in Technology

Hear us Roar



Article:
  Apache Web-Serving with Mac OS X, Part 4
Subject:   editing /etc/httpd/users/<username>.conf breaks web access to Sites folder
Date:   2002-03-13 20:10:28
From:   morbus
Response to: editing /etc/httpd/users/.conf breaks web access to Sites folder

Whoa, where did this "public_html" directory come from, as per your error message? "public_html" is the equivalent of "Sites", only for other distributions like Redhat, SuSE, and so on and so forth - its kinda like the default user website directory.


Open up your httpd.conf file and do a search for the UserDir directive. That should be set to "Sites", not "public_html". If it's not, do a search on the rest of the conf file for "public_html" - that's what's causing your problem.

Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • editing /etc/httpd/users/<username>.conf breaks web access to Sites folder
    2002-03-14 10:50:31  grosventre [View]

    Well,
    at one point, after breaking my httpd.conf, I had to restore it from the httd.conf.bak that was included in my apache. Following your prompt, I found the lines:

    <IfModule mod_userdir.c>
    UserDir public_html
    </IfModule>

    After replacing the public_html, with Sites, as well as a couple of other tweaks to httpd.conf with respect to the other directories, my Sites folders behave identically to my /Library/Webserver/ folder.

    I suppose the httpd.conf.bak, was a generic Apache backup file(?), using the public_html directory , instead of Sites, or htdocs (my accusatomed Free BSD default.

    Mystery solved. Thanks!