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'.
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.
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS>
Allow from all
<LimitExcept GET POST OPTIONS>
Deny from all
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
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?