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 15th July 2009, 11:09 PM
Gentoo Bob's Avatar
Gentoo Bob Offline
Registered User
 
Join Date: Oct 2007
Location: Indianapolis, IN
Age: 32
Posts: 119
Apache per-user directory setup

I have apache installed and I have it all setup so that when I create a user, in their home directory i created a folder called public_html and then that user can upload web content. Users then can browse to their site by going to http://mywebaddress.com/~usersname

How can I get apache to show a different or default page if the user does not have a index.html file in their public_html folder.

Cause if they dont, you get a 401 saying you dont have permissions to view, etc. So id like apache to default to something else if the user doesnt have a index.html.

Can anyone help? thanks in advance.
__________________
[FONT=Comic Sans MS]"I like mine with extra sugar please"[/FONT]

Linux/Unix distos currently used:
Fedora Core 8, Gentoo, and FreeBSD.
Reply With Quote
  #2  
Old 16th July 2009, 10:33 PM
neogranas Offline
Registered User
 
Join Date: Nov 2006
Location: U.S.A.
Age: 27
Posts: 473
In the /etc/skel/ directory set up the directory structure you want, and put the index file you want in the document root that will be created. That should do the trick.
__________________
Registered linux user: #475337

Never underestimate someone with source code, a text editor, and the willingness to completely hose their system.
Reply With Quote
Reply

Tags
apache, directory, peruser, setup

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 Directory Apache results in 403 errors Kees Servers & Networking 4 17th March 2009 10:38 AM
Apache says user directory 'Not Found' Tressie Servers & Networking 1 2nd February 2009 02:56 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: 06:17 (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