Hi,
I have FC10 newly installed, and Apache is serving content from /var/www/ okay.
I'm trying to get Apache to serve web content from user's home directories. This is what I've tried with no success:
Uncommented 'UserDir public_htm' in /etc/httpd/conf/httpd.conf and commented out 'UserDir disabled'.
And...
Uncommented user directory section in /etc/httpd/conf/httpd.conf. It now reads as follows:
#
# Control access to UserDir directories. The following is an example
# for a site where these directories are restricted to read-only.
#
<Directory /home/myusername/public_html>
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
Also...
mkdir /home/myusername/public_html
chmod ugo+rx /home/myusername
chmod 755 /home/myusername/public_html
chmod 644 /home/myusername/public_html/*
chcon -R -h -t httpd_sys_content_t /home/myusername/public_html
And...
setsebool -P httpd_enable_homedirs on
setsebool -P httpd_ssi_exec on
setsebool -P httpd_builtin_scripting on
setsebool -P httpd_tty_comm on
setsebool -P httpd_enable_cgi
I also tried setenforce 0 to temporarily disable SELinux until the next reboot. No luck. It doesn't appear to be an SELinux issue.
That's as far as the information available will take me. I still get URL 'Not Found' when I try to access
http://192.168.0.2/~myusername/
Can anyone please offer me some assistance in setting up user home directory web access?
Regards,
Tressie.