Project

General

Profile

Bug #448

SCRIPT_FILENAME and SCRIPT_NAME are wrong for [F]CGI scripts with full paths invoked as a directory index

Added by Anonymous over 11 years ago. Updated over 1 year ago.

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

0%

Estimated time:
Missing in 1.5.x:

Description

A request to /~username/files/, where files is a directory, on lighttpd configured with:

server.indexfiles = (
"index.html",
"/global-site-overlay/ambindextrous/indexer"
)

fastcgi.server = (
"/fcgi-bin/ambindextrous/indexer" => (
"localhost" => (
"socket" => "/var/run/lighttpd/ambindextrous.sock",
"bin-path" => "/home/sites/fcgi-bin/ambindextrous/indexer"
)
)
)

Yields this in the FastCGI Request environment

"SCRIPT_NAME"=>"/~username/files//fcgi-bin/ambindextrous/indexer"
"REQUEST_URI"=>"/~username/files/",
"DOCUMENT_ROOT"=>"/home/services/lighttpd/html/" "SCRIPT_FILENAME"=>"/home/services/lighttpd/html//fcgi-bin/ambindextrous/indexer"

Instead of:

"SCRIPT_NAME"=>"/fcgi-bin/ambindextrous/indexer"
"REQUEST_URI"=>"/~username/files/",
"DOCUMENT_ROOT"=>"/home/services/lighttpd/html/" "SCRIPT_FILENAME"=>"/home/sites/fcgi-bin/ambindextrous/indexer"

-- aredridel


Related issues

Related to Feature #892: No PATH_INFO/PATH_TRANSLATED when using FastCGI as an index generatorFixed

Associated revisions

Revision e0bafab2 (diff)
Added by gstrauss over 1 year ago

[mod_indexfile] save physical path to env (fixes #448, #892)

save physical path to environment (PATH_TRANSLATED_DIRINDEX)
when index generator is full path (not relative path)

fix uri.path when index generator is full path (not relative path)

History

#1 Updated by gstrauss over 1 year ago

  • Related to Feature #892: No PATH_INFO/PATH_TRANSLATED when using FastCGI as an index generator added

#2 Updated by gstrauss over 1 year ago

  • Description updated (diff)
  • Status changed from New to Patch Pending
  • Target version set to 1.4.40

#3 Updated by gstrauss over 1 year ago

  • Status changed from Patch Pending to Fixed
  • Assignee deleted (jan)

Also available in: Atom