Gentoo Archives: gentoo-user

From: Pandu Poluan <pandu@××××××.info>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] issues with apache config
Date: Mon, 04 Apr 2011 17:17:08
Message-Id: BANLkTinBac9aTFYg-MdpQSuSNoM-AXV1ZQ@mail.gmail.com
In Reply to: [gentoo-user] Re: issues with apache config by James
1 Based on the symptoms, i.e., works from CLI but fails during boot, I
2 suspect a problem with privileges/attributes. What UID is Apache
3 running as?
4
5 Anyways, what's wrong with Cherokee? I really like to know because I
6 am currently considering deploying Cherokee.
7
8 Rgds,
9
10
11 On 2011-04-04, James <jtp@×××××.com> wrote:
12 > It's also worth noting that I have *no* "/usr/htdocs" line in any of
13 > my configuration file(s).
14 >
15 > -james
16 >
17 >
18 > On Mon, Apr 4, 2011 at 11:22, James <jtp@×××××.com> wrote:
19 >> I'm a long-time Cherokee user that is switching to Apache due to a
20 >> nasty Cherokee bug that I can't seem to work around.
21 >>
22 >> I've configured Apache many times (albeit a long time ago), and can't
23 >> seem to figure out what's going on here.
24 >>
25 >> I have a simple PHP app running that lives in some directory, say
26 >> /stuff/web/app.
27 >>
28 >> I then have a vhost configuration that looks like this:
29 >>
30 >> <Directory "/stuff/web/app">
31 >>        Options Indexes FollowSymLinks
32 >>        AllowOverride All
33 >>        Order allow,deny
34 >>        Allow from all
35 >> </Directory>
36 >>
37 >> The vhost looks like this:
38 >>
39 >> <VirtualHost app.server.com:80>
40 >>        ServerName app.server.com
41 >>        DocumentRoot "/stuff/web/app"
42 >>        ErrorLog /var/log/apache2/app.error
43 >> </VirtualHost>
44 >>
45 >> When the server reboots, Apache refuses to serve me anything, giving
46 >> the following error:
47 >>
48 >> ==> error_log <==
49 >> [Mon Apr 04 07:17:59 2011] [error] [client 10.35.22.81] client denied
50 >> by server configuration: /usr/htdocs
51 >>
52 >> ==> access_log <==
53 >> 10.35.22.81 - - [04/Apr/2011:07:17:59 -0400] "\x16\x03\x01\x01\x98\x01"
54 >> 403 273
55 >>
56 >> I'm well aware of the default apache configuration (defined in
57 >> /etc/apache2/modules.d/00_default_settings.conf), and that the default
58 >> directory directive has a "Deny from all" default.
59 >>
60 >> However, if I *restart* my daemon with NO configuration changes after
61 >> seeing these errors, the page comes up beautifully. Also worth noting
62 >> is that rebooting the server again will put Apache back into a
63 >> "broken" state and only after restarting the daemon will things
64 >> function correctly.
65 >>
66 >> Thoughts on how to fix this would be much, MUCH appreciated. I am
67 >> running out of hair to pull out of my head. :)
68 >>
69 >> -james
70 >>
71 >
72 >
73
74
75 --
76 --
77 Pandu E Poluan - IT Optimizer
78 My website: http://pandu.poluan.info/

Replies

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