Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 01-15-2006, 08:02 AM   #1
LQ Newbie
Registered: Jan 2006
Posts: 15

Rep: Reputation: 0
Multiple website on Apache with User Directories


I want to set up users home folders as web sites in Red Hat Enterprise for with Apache. Can anybody get me going in the right direction with this? I am not sure on what exacly i need to do.
Old 01-15-2006, 05:28 PM   #2
Registered: Oct 2003
Location: fargoh eh.
Distribution: slackware
Posts: 94

Rep: Reputation: 15
there should be a section in your /etc/httpd/conf/httpd.conf file related to user directories. it will look similar to the following code.

to enable user directories, uncomment code as necessary, or start from scratch in a new secton. specify the name for the folder you want to use (i.e. public_html), set options, and restart (or graceful restart) httpd.

the users (or you) can then create a public_html directory and be sure that the httpd user has access to read the contents. so the public_html directory itself probably needs permissions of 755. the users need to make sure their content is readable by the httpd user too, which usually means making the files world-readable. alternatively you could set the sticky bit for them to be sure permissions will work no matter what they do.

<IfModule mod_userdir.c>
    UserDir public_html

<Directory /home/*/public_html>
    AllowOverride FileInfo AuthConfig Limit
    Options MultiViews SymLinksIfOwnerMatch
        Order allow,deny
        Allow from all
        Order deny,allow
        Deny from all
Old 01-16-2006, 08:20 AM   #3
LQ Newbie
Registered: Jan 2006
Posts: 15

Original Poster
Rep: Reputation: 0
Thank you! Is there anything additional i need to do is we are using CGI scripts?

Last edited by Mr_Oz; 01-16-2006 at 11:22 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Searching multiple directories and sub directories for a file jeep99899 Linux - Newbie 2 10-13-2005 01:23 PM
Creating user directories in Apache root robojerk Linux - Networking 1 09-21-2004 01:34 PM
Per-user directories with password protection (apache) gwroy20 Linux - Software 1 04-27-2004 01:48 AM
Help I need help tarring multiple files in multiple directories VisionZ Linux - Newbie 28 03-25-2004 06:25 PM
apache 2.0 user cgi-bin directories JHuizingh Linux - Software 3 03-19-2003 04:58 PM > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 08:20 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration