| 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-11 19:15:38 | |
| From: | grosventre | |
|
Response to: editing /etc/httpd/users/ |
||
|
Yes, there is an index.html fil. The error_log entries relevant are: [Mon Mar 11 19:55:59 2002] [error] [client 199.104.80.94] File does not exist: /Users/michaelh/public_html/ and [Mon Mar 11 19:56:58 2002] [error] [client 199.104.80.94] File does not exist: /Users/michaelh/public_html/index.html
|
||
Showing messages 1 through 2 of 2.
-
editing /etc/httpd/users/<username>.conf breaks web access to Sites folder
2002-03-13 20:10:28 Morbus Iff |
[View]
-
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!



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.