httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "t s" <keinbiervorv...@gmail.com>
Subject [users@httpd] odd/spurious error_log entries with ScriptAlias and Location directives
Date Thu, 10 Jan 2008 23:48:24 GMT
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message