Project

General

Profile

Actions

Bug #140

closed

hmm...

Added by Anonymous almost 20 years ago. Updated over 16 years ago.

Status:
Invalid
Priority:
Normal
Category:
-
Target version:
-
ASK QUESTIONS IN Forums:

Description

When trying to get moinmoin to run under lighttpd via FastCGI, I encountered a strange problem -- the PATH_INFO CGI environment variable never gets filled for some reason. This is a bit of a showstopper because moinmoin depends on PATH_INFO to figure out what wiki page to view. For example, when you setup lighttpd so that '/mywiki' sends requests to the moinmoin FCGI process, viewing "/mywiki/SomePage" should put "/SomePage" in the PATH_INFO variable.

Here's a dump of (most of) the CGI environment when I try to view http://localhost:8080/mywiki/RecentChanges:


'HTTP_REFERER': 'http://localhost:8080/mywiki/FrontPage?action=info', 
'SCRIPT_FILENAME': '/mywiki/RecentChanges', 
'REDIRECT_STATUS': '200', 
'SERVER_SOFTWARE': 'lighttpd/1.3.13', 
'SCRIPT_NAME': '/mywiki/RecentChanges', 
'REQUEST_METHOD': 'GET', 
'HTTP_HOST': 'localhost:8080', 
'PATH_INFO': '', 
'SERVER_PROTOCOL': 'HTTP/1.1', 
'QUERY_STRING': '', 
'HTTP_CACHE_CONTROL': 'no-cache', 
'REMOTE_ADDR': '127.0.0.1', 
'REQUEST_URI': '/mywiki/RecentChanges', 
'GATEWAY_INTERFACE': 'CGI/1.1', 
'SERVER_PORT': '8080', 
'SERVER_ADDR': '127.0.0.1', 
'DOCUMENT_ROOT': ''

The FastCGI spec says that PATH_INFO should only be empty for authorizer fastcgi applications.

-- chris

Actions #1

Updated by Anonymous over 19 years ago

I've worked with PHP+FastCGI on Apache (via mod_fastcgi), and now I'm working with PHP+FastCGI on LightTPD. In both cases, I've had to use ORIG_PATH_INFO to get access to the PATH_INFO information. I don't know why PATH_INFO gets moved to ORIG_PATH_INFO, but it does.

My point is that this might not be a bug in LightTPD. But I'm not sure. If it is a bug in LightTPD, then it is also a bug in Apache. Unfortunately, I do not know where to go to check or to get more information on this matter.

-- mpb.mail

Actions #2

Updated by jan over 19 years ago

  • Status changed from New to Assigned

Does it work if you enable 'broken-scriptfilename' in fastcgi.server ?

-> fastcgi.server = ( ".php" => ... ( "socket" => ..., "broken-scriptfilename" => "enable" ) ...

Actions #3

Updated by jan over 19 years ago

  • Status changed from Assigned to Fixed
  • Resolution set to invalid
Actions #4

Updated by stbuehler over 16 years ago

  • Status changed from Fixed to Invalid
Actions

Also available in: Atom