httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "t s" <>
Subject [users@httpd] odd/spurious error_log entries with ScriptAlias and Location directives
Date Thu, 10 Jan 2008 23:48:24 GMT

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

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

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

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 with foo in the PATH_INFO,
acces_log show status 200: - - [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] 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

works just fine.

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

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message