odd/spurious error_log entries with ScriptAlias and Location directives

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

 



Hi,

I have the following problem. Start with a stock apache 2.2.6 install
on generic linux (appears to also happen with apache 2.0.61)

Add this section to the end of the httpd.conf file

<Location />
 Order deny,allow
 deny from all
</Location>

ScriptAlias /testme /usr/local/httpd/cgi-bin/testme.pl

<Location /testme>
Order allow,deny
 allow from all
</Location>


No other modification to the default config files (setting ServerRoot
and ServerName doesn't make a difference)

A request to http://localhost/testme/foo successfully executes
testme.pl with foo in the PATH_INFO,
acces_log show status 200:

127.0.0.1 - - [10/Jan/2008:12:20:18 -0700] "GET /testme/foo HTTP/1.1" 200 29

but the error_log file contains an entry

[Thu Jan 10 12:20:18 2008] [error] [client 127.0.0.1] client denied by
server configuration: /usr/local/apache2/htdocs/foo

which doesn't make sense. Note that the cgi script is successfully
executed and returns what it is supposed to return.

Note that Location directives using handlers don't have the same problem, e.g.
<Location /status>
SetHandler server-status
Order allow,deny
allow from all
</Location>

works just fine.


Why is this error_log entry generated for each request to the script
defined in ScriptAlias?
Thanks
T.

---------------------------------------------------------------------
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