Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 2nd February 2009, 01:35 AM
Tressie Offline
Registered User
 
Join Date: Jan 2009
Posts: 25
Apache says user directory 'Not Found'

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.

Last edited by Tressie; 2nd February 2009 at 01:51 AM.
Reply With Quote
  #2  
Old 2nd February 2009, 02:56 AM
Tressie Offline
Registered User
 
Join Date: Jan 2009
Posts: 25
Hi,

Ah, it seems that you uncommenting 'UserDir disable' in /etc/httpd/conf/httpd.conf isn't enough to make user home directories visible to Apache. The default state for Apache's UserDir configuration appears to be disabled (?).

I added 'UserDir enable myusername' to /etc/httpd/conf/httpd.conf and I seem to be able to view http://192.168.0.2/~myusername/ now.

All fixed now. Thanks Guy's!

Regards,
Tressie.
Reply With Quote
Reply

Tags
apache, directory, user

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache per-user directory setup Gentoo Bob Servers & Networking 1 16th July 2009 10:33 PM
User Directory Apache results in 403 errors Kees Servers & Networking 4 17th March 2009 10:38 AM
With vsftpd, how to set each virtual user to use a different directory & real user? Terence Servers & Networking 1 9th December 2005 05:10 AM
With vsftpd, how can each virtual user uses a different directory & real user? Terence Using Fedora 0 5th December 2005 09:27 AM
Is home/user the User html directory ? swiftsage Servers & Networking 7 15th July 2005 05:41 PM


Current GMT-time: 07:58 (Sunday, 26-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat