Gentoo Archives: gentoo-user

From: Ognjen Bezanov <ognjen@×××××××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Apache + Per User Directory configuration
Date: Thu, 04 May 2006 20:37:32
Message-Id: 200605042117.15235.ognjen@mailshack.com
1 Hi,
2
3 I have spent most of the day getting per user web serving to work
4 (/home/$user/public_html => http://server/~$user) but was constantly getting
5 "401 Forbidden" errors with apache2.
6
7 After lots of hunting I found that you have to set the permissions for the
8 user directories to 755 (a+rx). So now it works, but all the users can see
9 each others home directories, which is unacceptable (security wise) for this
10 server.
11
12 So I am here to ask if anyone cen recommend a more secure way of doing this. I
13 want each users home directory readable only by that user (no other users) but
14 that apache can still serve without a "Forbidden" error.
15
16 Any tips appreciated, thanks!
17 --
18 http://ziva-vatra.dnsalias.com/~ognen
19
20
21
22 --
23 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Apache + Per User Directory configuration Mike Williams <mike@××××××××.uk>