LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-03-2007, 02:16 PM   #1
BostonMark
LQ Newbie
 
Registered: Aug 2007
Posts: 6

Rep: Reputation: 0
Fedora Core 6: Help setting up users and virtual websites


Hi all,
I'm new to Fedora and linux for servers in general. I have linux experience but not as a server.

Here's the scenario I'd like:

I want to create a user for each website I'm going to host, e.g. myawesomesitedotcom, anothersitedotnet, etc.

I want to direct each site to a wwwroot within the home folders.
E.g.

myawesomesite.com would point to /home/myawesomesitedotcom/wwwroot
anothersitedotnet would point to /home/anothersitedotnet/wwwroot

I was able to get some dummy virtual hosts working when they were in the locations /wwwroot/site1 and /wwwroot/site2

Now that I'm setting up these sites in the home folders like I mentioned above, I'm getting 403's. I made all of the wwwroot folders and files within them 777 and it still doesn't work.

Any help is greatly appreciated.

Thanks in advance and I welcome other similar methods/ideas for setting up multiple sites where there's security among users (i.e. they can only access their own folders).
 
Old 08-04-2007, 07:38 AM   #2
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,191

Rep: Reputation: 49
post in your apache conf file, where you put in the virtual hosts.
also show us the permissions and owners of /wwwroot etc.
 
Old 08-14-2007, 03:00 PM   #3
BostonMark
LQ Newbie
 
Registered: Aug 2007
Posts: 6

Original Poster
Rep: Reputation: 0
Exclamation

mark is my username. The owner for the wwwroot folder and its content is mark and the group is mark.

Currently, I'm having GUI problems, so only CLI is working from a remote location. I tried to add the apache user to the group mark. I did:

usermod -g mark apache

It still doesn't work.

---------------------------------

<VirtualHost *>
DocumentRoot /home/mark/wwwroot
ServerSignature email
DirectoryIndex index.php index.html index.htm index.shtml
LogLevel debug
HostNameLookups off
</VirtualHost>

<Directory "/home/mark/wwwroot">
Options Indexes Includes FollowSymLinks
AllowOverride None
Allow from all
Order allow,deny
</Directory>
 
Old 08-15-2007, 03:16 AM   #4
igorc
Member
 
Registered: May 2005
Location: Sydney, Australia
Distribution: Ubuntu 5.04, Debian 3.1
Posts: 74

Rep: Reputation: 15
Hi,

Shouldn't this :
Allow from all
Order allow,deny

be in opposite order:
Order allow,deny
Allow from all
 
  


Reply



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
LXer: Virtual Users And Domains With Postfix, Courier And MySQL (Fedora Core 5) LXer Syndicated Linux News 0 09-10-2006 08:33 AM
Install Fedora Core 5 on MS Virtual PC 04 SP1 SplanK Fedora 2 09-01-2006 01:52 PM
vsftpd-fedora core 5-virtual users-Documentations sort of for me. sarina1975 Linux - General 2 08-25-2006 12:55 PM
virtual hosts problem - fedora core 4 john_f Fedora 1 04-04-2006 12:28 AM
VSFTPD - Seting up virtual folder and users on Fedora Core 2 tosheeba Linux - Networking 2 10-18-2004 04:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:20 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
Open Source Consulting | Domain Registration