Apache User Directories (public_html)
Howdy,
I'm running Apache 1.3 on my SuSE 8.0 machine. Only thing I can seem to get working is the default /usr/local/httpd/htdocs directory. I cannot get the user public_html directories to work, nor can I get the cgi-bin/ to work. (PHP and SSI's do work tho. I'm learning PHP now :) )
Permissions are set. Do I need to add the users to a group of some sort?
From the httpd.conf:
Code:
#
# UserDir: The name of the directory which is appended onto a user's home
# directory if a ~user request is received.
# Note:
# The next three lines are commented out here. These directives and the access
# control section have been put into /etc/httpd/suse_public_html.conf.
# If the variable HTTPD_SEC_PUBLIC_HTML in /etc/sysconfig/apache
# is set to "yes" (default), SuSEconfig will include that file via
# /etc/httpd/suse_include.conf.
# Also note that for the /home/*/public_html directories to be browsable the
# executable flag must be set on the /home/* directories.
so, HTTPD_SEC_PUBLIC_HTML is set to yes, and this is the /etc/httpd/suse_public_html.conf:
Code:
<Ifmodule mod_userdir.c>
UserDir public_html
</Ifmodule>
<Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig Limit
Options indexes includesNoExec execCGI
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
Allow from all
</Directory>
Not sure what to do. Any help would be appreciated!
Oh yeah, the user_dir mod is set up to run