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 10th May 2006, 10:55 AM
TheOlster Offline
Registered User
 
Join Date: Mar 2005
Posts: 72
Apache & Serving web pages from user's home directories

This has been something that has been bothering me for ages, since FC3 in fact. I want to serve web pages from the user's home directories. With FC3, FC4 & FC5 I have always used Stanton Finley's Installation Notes (for FC5 http://stanton-finley.net/fedora_cor...notes.html#Web ) to configure Apache, PHP, MySQL, FTP, etc... but I just don't get it.

There are two potential issues that I may have here:
  1. I have not set up the /etc/httpd/conf/httpd.conf file properly, although I have been careful to follow SF's notes.
  2. I do not understand how to implement the structure of the website?!
So this leads me to ask where I am going wrong... here is the relevant part of /etc/httpd/conf/httpd.conf
Quote:
<IfModule mod_userdir.c>
#UserDir disable
UserDir public_html
</IfModule>

<Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig Limit
Options Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
<Limit GET POST OPTIONS>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
But it could also be where the files are... I have one file in the shared folders here: /home/theolster/public_html/index.html and the folder /var/www/html is empty. When I direct firefox to 127.0.0.1 all I get is the default apache page, should I not see the index.html file?

Any help on this would be greatly appreciated as I'm probably just being dumb...
Reply With Quote
  #2  
Old 10th May 2006, 11:17 AM
jowah Offline
Registered User
 
Join Date: Dec 2004
Location: Under your bed
Posts: 293
Quote:
Originally Posted by TheOlster
But it could also be where the files are... I have one file in the shared folders here: /home/theolster/public_html/index.html and the folder /var/www/html is empty. When I direct firefox to 127.0.0.1 all I get is the default apache page, should I not see the index.html file?
No, the URL http://127.0.0.1/ will still look for web files in the web server's DocumentRoot (/var/www/html). This is why you still get the default apache page. In order to view web content in users' public_html folders, you use URL:s of the form
Code:
http://127.0.0.1/~username/
As an example, with the user name theolster, you'd use http://127.0.0.1/~theolster/ in order to view /home/theolster/public_html/index.html .

Last edited by jowah; 10th May 2006 at 11:20 AM.
Reply With Quote
  #3  
Old 10th May 2006, 11:53 AM
TheOlster Offline
Registered User
 
Join Date: Mar 2005
Posts: 72
Many thanks JOWAH - see I told you I was being dumb! It's always the really simple things that handicap me.
Reply With Quote
Reply

Tags
apache, directories, home, pages, serving, user, web

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
User's home be ~/public_html leaded Servers & Networking 13 22nd May 2006 04:19 PM
Serve web pages from user's home directories? Taae Servers & Networking 14 13th April 2006 03:08 PM
Password protect apache home directories paul_mat Servers & Networking 6 22nd March 2006 07:25 AM
openldap apache home directories paul_mat Servers & Networking 0 21st March 2006 01:34 PM
SELinux, vsftpd, home directories and apache GBH Security and Privacy 2 26th October 2005 01:08 PM


Current GMT-time: 19:11 (Wednesday, 22-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