|
SuSE 10.0 failing to serve home directories
I realize this has been rehashed a bit, but, I have a new and strange problem.
First, Yast did not configure httpd.conf correctly. You can enable mod_user in Yast, but it doesn't insert the correct entry into httpd.conf (or any of the other .conf files) despite saying that it had. So, I manually edited httpd.conf and added the line
# enable user directory hosting
Include /etc/apache2/mod_userdir.conf
mod_userdir.conf contains
#
# UserDir: The name of the directory that is appended onto a user's home
# directory if a ~user request is received.
#
<IfModule mod_userdir.c>
# not every user's directory should be visible:
UserDir disabled root
# to enable UserDir only for a certain set of users, use this instead:
#UserDir disabled
#UserDir enabled user1 user2
# the UserDir directive is actually used inside the virtual hosts, to
# have more control
UserDir public_html
<Directory /home/*/public_html>
#AllowOverride All
AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
# enable cgi scripting
<Directory /home/*/public_html/cgi-bin/>
Options ExecCGI
SetHandler cgi-script
</Directory>
</IfModule>
Adding these things and setting the correct permissions on my public_html directory solved my problems the first time. Then I decided to try Yast again (because editing the .conf files manually messes up the yast hash). So, I re-installed Apache2 with all the defaults I had originally started with. Once again, yast failed to do the job, so I decided to restore everything to what I just explained. Now, once again, the home/*/public_html directories are not served, resulting in a 404 error.
Any thoughts?
Thanks.
|