LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

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

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


Hi,

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, 04:28 PM   #2
jillande
Member
 
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.

Code:
<IfModule mod_userdir.c>
    UserDir public_html
</IfModule>

<Directory /home/*/public_html>
    AllowOverride FileInfo AuthConfig Limit
    Options MultiViews SymLinksIfOwnerMatch
    <Limit GET POST OPTIONS PROPFIND>
        Order allow,deny
        Allow from all
    </Limit>
    <LimitExcept GET POST OPTIONS PROPFIND>
        Order deny,allow
        Deny from all
    </LimitExcept>
</Directory>
 
Old 01-16-2006, 07:20 AM   #3
Mr_Oz
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 10:22 AM.
 
  


Reply


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 12:23 PM
Creating user directories in Apache root robojerk Linux - Networking 1 09-21-2004 12:34 PM
Per-user directories with password protection (apache) gwroy20 Linux - Software 1 04-27-2004 12:48 AM
Help I need help tarring multiple files in multiple directories VisionZ Linux - Newbie 28 03-25-2004 05:25 PM
apache 2.0 user cgi-bin directories JHuizingh Linux - Software 3 03-19-2003 03:58 PM


All times are GMT -5. The time now is 07:56 PM.

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