Re: CGI works, but client denied error messages in error.log

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 08/08/2007, Georg Sauthoff <g_sauthoff@xxxxxx> wrote:
> I have a working Apache 2 setup and Apache calls successfully the
> cgi-scripts. The problem is, that for every successfull CGI-call I get a
> 'client denied by server configuration' error message into the error.log
> file.
>
> This message conflicts with the fact, that the CGI-call was executed
> successfully and I saw the correct output in the Web browser.
>
> I am basically using a '/ Deny all' policy and a ScriptAlias definition.
> A minimal example:
>
> NameVirtualHost *
> <VirtualHost *>
>   DocumentRoot /var/www/
>
>   <Directory />
>     Options -FollowSymLinks -Indexes -Includes
>     AllowOverride None
>     Order Deny,Allow
>     Deny from all
>   </Directory>
>
>
>   ScriptAlias /project /var/www/project/cgi-bin/test.cgi
>   <Directory /var/www/project/cgi-bin>
>     Order Deny,Allow
>     Allow from all
>   </Directory>
> </VirtualHost>
>
> # cat test.cgi
> #!/bin/sh
>
> cat out.min
>
> # cat out.min
> Content-Type: text/html; charset=utf-8
> Status: 200 OK
>
> <HTML>
> <HEAD></HEAD><BODY><H1>HELLO WORLD!</H1></BODY></HTML
>
> Browser output from 127.0.0.1/project/bar:
> very big: Hello World!
>
> Error message in error.log:
> [client 127.0.0.1] client denied by server configuration: /var/www/bar
>
>
> Can someone explain me this behaviour? I don't understand this. This error
> makes no sense for me, because the script execution works, apparently.

How perplexing. It's odd that the error message is for /var/www/bar
and any project/cgi-bin parts. I wonder if there's more than one
request involved, possibly for something like a favicon.ico file?
Check your access log as well as the error log and see how many
entries you get per request.

-- 
noodl

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux