Project

General

Profile

Bug #963

Subdirectories in authorizer mode

Added by Anonymous over 9 years ago. Updated over 7 years ago.

Status:
Fixed
Priority:
High
Assignee:
-
Category:
mod_fastcgi
Target version:
Start date:
Due date:
% Done:

0%

Missing in 1.5.x:

Description

fastcgi in authorizer mode not working, when using subdirectories.
Fixing: in mod_fastcgi.c, line 3117 change con->uri.path to con->uri.path_raw

-- laszlo.farkas

Associated revisions

Revision 80a4f7a7 (diff)
Added by stbuehler over 7 years ago

Fix fastcgi authorization in subdirectories with check-local=disabled; don't split pathinfo for authorizer. (#963)

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2324 152afb58-edef-0310-8abb-c4023f1b3aa9

History

#1 Updated by stbuehler over 7 years ago

  • Status changed from New to Fixed
  • Resolution set to worksforme

Couldn't find con->uri.path in the mentioned line, and this "fix" doesn't sound like a good idea (you shouldn't use path_raw). As a config/test example is missing and this bug is old, i will just close it.

Please provide more specific information if you reopen, thx.

#2 Updated by Anonymous over 7 years ago

  • Status changed from Fixed to Need Feedback
  • Resolution deleted (worksforme)

line 3251: change con->uri.path to con->uri.path_raw

without it we have a recursive redirect
if we go to http://test/data/2008/ff/test.jpg
then we will redirect to http://test/data/2008

(/v0/data/2008/ff/test.jpg exists)

config example:

fastcgi.server = (
"/data/" =>
( "files" =>
(
"socket" => "/usr/local/wp/run/auth.sock",
"mode" => "authorizer",
"docroot" => "/v0",
"check-local" => "disable"
)
)
)

patch above solve this problem

#3 Updated by stbuehler over 7 years ago

  • Status changed from Need Feedback to Fixed
  • Resolution set to fixed

Fixed in r2324

Also available in: Atom