1 |
On Sat, Sep 29 2012, Michael Hampicke wrote: |
2 |
|
3 |
> Am 29.09.2012 19:52, schrieb Neil Bothwick: |
4 |
>> On Sat, 29 Sep 2012 11:08:41 -0400, Allan Gottlieb wrote: |
5 |
>> |
6 |
>>> When I try http://localhost/~gottlieb, firefox says |
7 |
>>> "you don't have permission to access /~gottlieb" |
8 |
>>> and the apache error log says |
9 |
>>> "client denied by server |
10 |
>>> configuration: /local/allan/gottlieb/public_html" |
11 |
>>> |
12 |
>>> The file permissions are ok since both |
13 |
>>> file:///home/gottlieb/public_html/index.html and |
14 |
>>> file:///home/gottlieb/public_html |
15 |
>>> work fine. |
16 |
>> |
17 |
>> It's not file permissions, the error message says "server configuration", |
18 |
>> probably some Allow/Deny magic. |
19 |
>> |
20 |
>> |
21 |
> |
22 |
> Yeah, now I see it: |
23 |
> |
24 |
> "client denied by server configuration:" |
25 |
> |
26 |
> /local/allan/gottlieb/public_html |
27 |
> |
28 |
> The file permissions are ok since both |
29 |
> file:///home/gottlieb/public_html/index.html |
30 |
> |
31 |
> So there's /local/allan vs /home/gottlieb |
32 |
> |
33 |
> If you correct the DocumentRoot it will work :) |
34 |
|
35 |
I don't understand what is wrong with DocumentRoot. It is unchanged at |
36 |
/var/www/localhost/htdocs and accessing http://localhost works fine. |
37 |
|
38 |
/etc/conf.d/apache says |
39 |
# USERDIR Enables /~username mapping to /home/username/public_html |
40 |
|
41 |
So /~gottlieb --> /home/gottlieb/public_html |
42 |
|
43 |
/home/gottlieb -> /local/allan/gottlieb |
44 |
|
45 |
and all directories in both paths have permissions >= 555 |
46 |
|
47 |
I know a symlink /home/gottlieb -> /local/allan/gottlieb is OK |
48 |
for apache since my current install has |
49 |
|
50 |
/home/gottlieb -> /allan/gottlieb /allan -> /local/allan |
51 |
and everything works. |
52 |
|
53 |
I agree with neil that it is probably allow/deny, but I don't see any |
54 |
differences between my old and new (both are pretty much stock). |
55 |
The new is essentially unchanged from the emerged package (added USERDIR |
56 |
to /etc/conf.d/apache2) and I have diff'ed old with new and they seem the |
57 |
same. There must be some place I haven't looked. |
58 |
|
59 |
I appreciate all the effort. |
60 |
allan gottlieb |