Re: Can't get Apache httpd.conf permissions correct
- From: Ian Northeast <ian@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 23 Jul 2007 20:27:38 +0100
On Mon, 23 Jul 2007 01:28:39 +0000, Phil Latio wrote:
I have the following setup:
2 users:
- user1
- user2
Each user has his own directory
- /home/user1
- /home/user2
Each user has one tld
- user1 owns domain1.com
- user2 owns domain2.com
If I set httpd.conf to the following, . User: user1
Group: apache
only user1 website's is visable
If I set httpd.conf to the following: User: user2
Group: apache
only user2 website's is visable.
If I set httpd.conf to the following: User: apache
Group: apache
neither website's is visable.
- I have tried making both user1 and user2 members of the Group "apache"
but that makes no difference.
- I have tried changing the ownership of all the files and directories of
both /home/user1 and /home/user2 to the Group "apache" but no luck.
So the question is what do I have to set in in httpd.conf (or elsewhere)
to enable both both user1 and user2 websites don't get Error 403
forbidden?
Firstly don't run apache as a regular user, it's a security risk. Run it
as its own user, and ensure that this has no rights to damage anything in
the system, or as "nobody".
Ensure that the apache user has read access to all files it needs. This
includes having "execute" access to the directories containing them - I
suspect that this may be what you are missing. Normally this is done by
granting global read/execute access to the files in question. If you want
to do it using group access and not have the files globally readable
(although I can't think why you would want to, when they can be accessed
via the web server anyway) the files will have to belong to the "apache"
group.
Regards, Ian
.
- Follow-Ups:
- Re: Can't get Apache httpd.conf permissions correct
- From: Phil Latio
- Re: Can't get Apache httpd.conf permissions correct
- References:
- Can't get Apache httpd.conf permissions correct
- From: Phil Latio
- Can't get Apache httpd.conf permissions correct
- Prev by Date: Re: Auto network re-connect - and the winner is?
- Next by Date: Re: Can't get Apache httpd.conf permissions correct
- Previous by thread: Re: Can't get Apache httpd.conf permissions correct
- Next by thread: Re: Can't get Apache httpd.conf permissions correct
- Index(es):
Relevant Pages
|
|