Gentoo Archives: gentoo-user

From: James <jtp@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] issues with apache config
Date: Mon, 04 Apr 2011 15:24:54
Message-Id: BANLkTik5XbBHZnEPUfXKLGFJN+GfsA1JOQ@mail.gmail.com
1 I'm a long-time Cherokee user that is switching to Apache due to a
2 nasty Cherokee bug that I can't seem to work around.
3
4 I've configured Apache many times (albeit a long time ago), and can't
5 seem to figure out what's going on here.
6
7 I have a simple PHP app running that lives in some directory, say
8 /stuff/web/app.
9
10 I then have a vhost configuration that looks like this:
11
12 <Directory "/stuff/web/app">
13 Options Indexes FollowSymLinks
14 AllowOverride All
15 Order allow,deny
16 Allow from all
17 </Directory>
18
19 The vhost looks like this:
20
21 <VirtualHost app.server.com:80>
22 ServerName app.server.com
23 DocumentRoot "/stuff/web/app"
24 ErrorLog /var/log/apache2/app.error
25 </VirtualHost>
26
27 When the server reboots, Apache refuses to serve me anything, giving
28 the following error:
29
30 ==> error_log <==
31 [Mon Apr 04 07:17:59 2011] [error] [client 10.35.22.81] client denied
32 by server configuration: /usr/htdocs
33
34 ==> access_log <==
35 10.35.22.81 - - [04/Apr/2011:07:17:59 -0400] "\x16\x03\x01\x01\x98\x01" 403 273
36
37 I'm well aware of the default apache configuration (defined in
38 /etc/apache2/modules.d/00_default_settings.conf), and that the default
39 directory directive has a "Deny from all" default.
40
41 However, if I *restart* my daemon with NO configuration changes after
42 seeing these errors, the page comes up beautifully. Also worth noting
43 is that rebooting the server again will put Apache back into a
44 "broken" state and only after restarting the daemon will things
45 function correctly.
46
47 Thoughts on how to fix this would be much, MUCH appreciated. I am
48 running out of hair to pull out of my head. :)
49
50 -james

Replies

Subject Author
[gentoo-user] Re: issues with apache config James <jtp@×××××.com>