LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-24-2004, 11:42 PM   #1
wycolorado
LQ Newbie
 
Registered: Aug 2003
Posts: 29

Rep: Reputation: 15
Question Question for multi-user webserver (Apache) on Fedora


I just installed Fedora 2 and try to configure it as my and my friends' website. I don't have a domain name. So the static IP will be the website access. For example, 64.250.222.17 will work for root web access. But how to configure to make each user website work.

I configured each user in httpd.conf as below. But when I try 64.250.222.17/~user, it doesn't work. Is there anything else I should do? Thanks.

David

<IfModule mod_userdir.c>
#
# UserDir is disabled by default since it can confirm the presence
# of a username on the system (depending on home directory
# permissions).
#
#UserDir disable

#
# To enable requests to /~user/ to serve the user's public_html
# directory, remove the "UserDir disable" line above, and uncomment
# the following line instead:
#
UserDir public_html

</IfModule>
 
Old 09-25-2004, 12:00 AM   #2
d0odman
Member
 
Registered: Sep 2004
Location: CA, USA
Distribution: Slackware 10.2
Posts: 132

Rep: Reputation: 15
Check lower in the conf file

I don't see the rest of your conf file, but that section looks all right. It took me a while to figure out how to do the same thing. I had to add a <Directory ...> statement in to the file as well. It goes something like this:

<Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes 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>

Plus, if you want to add some CGI scripts to your files as well, add these line as well:

<Directory /home/*/public_html/cgi-bin>
Options ExecCGI
SetHandler cgi-script
</Directory>

Good luck!

PS I recommend looking up more info on those options, those MAY be really insecure.
 
Old 09-26-2004, 12:52 AM   #3
wycolorado
LQ Newbie
 
Registered: Aug 2003
Posts: 29

Original Poster
Rep: Reputation: 15
thanks a lot. Is there any requirement for group/user definition for the directory and files? For example, in the httpd.conf, the defaul user and group is apache. Do I need to change the group and file to that group and user? Any permission do I need to change for the files in each user's public_html? thanks.

David
 
Old 09-26-2004, 01:20 AM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Just so long as the Apache user is able to enter the Web directories and read the files, it is fine.
 
  


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
Question about php 5 and apache webserver Hockeyfan SUSE / openSUSE 1 12-17-2005 07:51 AM
Permission problem with uni multi-user webserver Proud Linux - Security 5 04-17-2005 12:42 PM
Apache Webserver 403 Forbidden Errors (User not in apache group?) Mankind75 Mandriva 4 07-08-2004 06:30 AM
Apache webserver question Joe Soap Linux - Newbie 6 06-16-2004 07:34 PM
Yet Another Apache webserver question (please bear with me) shassouneh Linux - Networking 6 06-01-2002 05:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:22 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration