From: Pandu Poluan <pandu@poluan.info>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] issues with apache config
Date: Tue, 5 Apr 2011 00:15:24 +0700 [thread overview]
Message-ID: <BANLkTinBac9aTFYg-MdpQSuSNoM-AXV1ZQ@mail.gmail.com> (raw)
In-Reply-To: <BANLkTi=CvQTFpN0ruP=sCmfC1rBBCHyNkg@mail.gmail.com>
Based on the symptoms, i.e., works from CLI but fails during boot, I
suspect a problem with privileges/attributes. What UID is Apache
running as?
Anyways, what's wrong with Cherokee? I really like to know because I
am currently considering deploying Cherokee.
Rgds,
On 2011-04-04, James <jtp@nc.rr.com> wrote:
> It's also worth noting that I have *no* "/usr/htdocs" line in any of
> my configuration file(s).
>
> -james
>
>
> On Mon, Apr 4, 2011 at 11:22, James <jtp@nc.rr.com> wrote:
>> I'm a long-time Cherokee user that is switching to Apache due to a
>> nasty Cherokee bug that I can't seem to work around.
>>
>> I've configured Apache many times (albeit a long time ago), and can't
>> seem to figure out what's going on here.
>>
>> I have a simple PHP app running that lives in some directory, say
>> /stuff/web/app.
>>
>> I then have a vhost configuration that looks like this:
>>
>> <Directory "/stuff/web/app">
>> Options Indexes FollowSymLinks
>> AllowOverride All
>> Order allow,deny
>> Allow from all
>> </Directory>
>>
>> The vhost looks like this:
>>
>> <VirtualHost app.server.com:80>
>> ServerName app.server.com
>> DocumentRoot "/stuff/web/app"
>> ErrorLog /var/log/apache2/app.error
>> </VirtualHost>
>>
>> When the server reboots, Apache refuses to serve me anything, giving
>> the following error:
>>
>> ==> error_log <==
>> [Mon Apr 04 07:17:59 2011] [error] [client 10.35.22.81] client denied
>> by server configuration: /usr/htdocs
>>
>> ==> access_log <==
>> 10.35.22.81 - - [04/Apr/2011:07:17:59 -0400] "\x16\x03\x01\x01\x98\x01"
>> 403 273
>>
>> I'm well aware of the default apache configuration (defined in
>> /etc/apache2/modules.d/00_default_settings.conf), and that the default
>> directory directive has a "Deny from all" default.
>>
>> However, if I *restart* my daemon with NO configuration changes after
>> seeing these errors, the page comes up beautifully. Also worth noting
>> is that rebooting the server again will put Apache back into a
>> "broken" state and only after restarting the daemon will things
>> function correctly.
>>
>> Thoughts on how to fix this would be much, MUCH appreciated. I am
>> running out of hair to pull out of my head. :)
>>
>> -james
>>
>
>
--
--
Pandu E Poluan - IT Optimizer
My website: http://pandu.poluan.info/
next prev parent reply other threads:[~2011-04-04 17:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-04 15:22 [gentoo-user] issues with apache config James
2011-04-04 15:50 ` [gentoo-user] " James
2011-04-04 17:15 ` Pandu Poluan [this message]
2011-04-04 17:58 ` [gentoo-user] " James
2011-04-06 6:47 ` Pandu Poluan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BANLkTinBac9aTFYg-MdpQSuSNoM-AXV1ZQ@mail.gmail.com \
--to=pandu@poluan.info \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox