RE: Apache virtual servers permissions and users?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The way I work this is to chown /var/www/www.domain.com to the user/group of
the person who's website the domain related to. Then in the users
/home/username/ directory i create a symbolic link to there
/var/www/www.domain.com directory. Users only have access to there own
website directories and ive never had any problems with permissions.
 

-----Original Message-----
From: fedora-list-admin@xxxxxxxxxx [mailto:fedora-list-admin@xxxxxxxxxx] On
Behalf Of WipeOut
Sent: 10 February 2004 12:36
To: fedora-list@xxxxxxxxxx
Subject: OT: Apache virtual servers permissions and users?

Hi,

Basically following on from the "Apache permissions" discussion..

I have a number of namebased apache virtual servers on my web server.. 
Something that has always been a major problem is getting it to work 
properly when it comes to allowing certain users to upload files and 
manage the sites..

Apache uses a default working directory of /var/www..

So I created the following structure for my virtual servers..

/var/www/www.domain1.com/
                                                 html
                                                 logs
                                                 cgi-bin
/var/www/www.domain2.com/
                                                 html
                                                 logs
                                                 cgi-bin
/var/www/www.domain3.com/
                                                  html
                                                  logs
                                                  cgi-bin
etc..

Then in my httpd.conf I setup the name based virtual servers to use the 
"html" dir for the web pages, the "logs" dir for logs and the "cgi-bin" 
for cgi's..

The only access to the server for adding and updating files is SSH or 
SCP (I don't have FTP on the server at all)..

Now for the problem.. Whenever pages are updated on one of the sites I 
have to go and make sure the permissions are correct using "root" to go 
and reset the permissions..

There must be an easier way!! How do all these control panel systems get 
it right?

I want to be able to say to user1, that he can manage domain1.com and 
not have to always go in and sort out the permissions when he is 
finished.. Same for user2 managing domain2..

What would be really nice is if user1 did not have access to domain2 
eiather and was only alowed to play in his own domain..

If anyone knows how hosting providers get this setup I would really like 
to know how its done.. The only how-to's I have found seem to tell you 
how setup the apache virtual servers but not how to manage the users who 
will be using and running the server and the permissions of those servers..

Thnaks..


-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list

Attachment: smime.p7s
Description: S/MIME cryptographic signature


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux