Project

General

Profile

Actions

Bug #2215

closed

"403 - Forbidden" and no meaningful logs if no php handler is set up

Added by hever almost 14 years ago. Updated over 13 years ago.

Status:
Fixed
Priority:
Low
Category:
-
Target version:
ASK QUESTIONS IN Forums:

Description

If no php handler is set up properly but a php script is executed the following debug logfile is created (using debug.log-request-handling + debug.log-file-not-found):

2010-05-29 11:26:49: (server.c.1495) server stopped by UID = 0 PID = 0
2010-05-29 11:26:50: (log.c.172) server started
2010-05-29 11:26:53: (response.c.227) -- splitting Request-URI
2010-05-29 11:26:53: (response.c.228) Request-URI  :  /test.php
2010-05-29 11:26:53: (response.c.229) URI-scheme   :  http
2010-05-29 11:26:53: (response.c.230) URI-authority:  192.168.178.203
2010-05-29 11:26:53: (response.c.231) URI-path     :  /test.php
2010-05-29 11:26:53: (response.c.232) URI-query    :
2010-05-29 11:26:53: (response.c.276) -- sanatising URI
2010-05-29 11:26:53: (response.c.277) URI-path     :  /test.php
2010-05-29 11:26:53: (mod_access.c.135) -- mod_access_uri_handler called
2010-05-29 11:26:53: (response.c.391) -- before doc_root
2010-05-29 11:26:53: (response.c.392) Doc-Root     : /usr/local/www/data/
2010-05-29 11:26:53: (response.c.393) Rel-Path     : /test.php
2010-05-29 11:26:53: (response.c.394) Path         :
2010-05-29 11:26:53: (response.c.442) -- after doc_root
2010-05-29 11:26:53: (response.c.443) Doc-Root     : /usr/local/www/data/
2010-05-29 11:26:53: (response.c.444) Rel-Path     : /test.php
2010-05-29 11:26:53: (response.c.445) Path         : /usr/local/www/data/test.php
2010-05-29 11:26:53: (response.c.462) -- logical -> physical
2010-05-29 11:26:53: (response.c.463) Doc-Root     : /usr/local/www/data/
2010-05-29 11:26:53: (response.c.464) Rel-Path     : /test.php
2010-05-29 11:26:53: (response.c.465) Path         : /usr/local/www/data/test.php
2010-05-29 11:26:53: (response.c.482) -- handling physical path
2010-05-29 11:26:53: (response.c.483) Path         : /usr/local/www/data/test.php
2010-05-29 11:26:53: (response.c.490) -- file found
2010-05-29 11:26:53: (response.c.491) Path         : /usr/local/www/data/test.php
2010-05-29 11:26:53: (response.c.640) -- handling subrequest
2010-05-29 11:26:53: (response.c.641) Path         : /usr/local/www/data/test.php
2010-05-29 11:26:53: (mod_access.c.135) -- mod_access_uri_handler called

The "-- file found" log entry is misleading and the log should complain about a missing fastcgi setup.

--

FreeBSD 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:02:08 UTC 2009 :/usr/obj/usr/src/sys/GENERIC amd64

lighttpd/1.4.23 (ssl) - a light and fast webserver
Build-Date: Aug 8 2009 09:44:29

Actions #1

Updated by icy almost 14 years ago

What he means is when a file hits static-file.exclude-extensions we should log something so the user knows why a 403 is happening.

The "-- file found" is not misleading at all, the file is there.

Actions #2

Updated by stbuehler over 13 years ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

Applied in changeset r2736.

Actions #3

Updated by stbuehler over 13 years ago

  • Target version changed from 1.4.x to 1.4.27
Actions

Also available in: Atom