https://redmine.lighttpd.net/https://redmine.lighttpd.net/favicon.ico?13667327412006-07-08T23:22:00Zlighty labsLighttpd - Bug #729: Incorrect PATH_INFO when FastCGI is serving "/"https://redmine.lighttpd.net/issues/729?journal_id=16702006-07-08T23:22:00ZAnonymous
<ul></ul><p>This occurs when mapping any URL ending in "/" to FastCGI. The same mapping with the ending "/" removed works correctly.</p>
<p>-- mgood</p> Lighttpd - Bug #729: Incorrect PATH_INFO when FastCGI is serving "/"https://redmine.lighttpd.net/issues/729?journal_id=16712006-08-16T21:10:46ZAnonymous
<ul></ul><p>This causes problems for trac, when it is sitting in the root directory. See <a href="http://trac.edgewall.org/ticket/2418" class="external">trac bug 2418</a>.</p>
<p>-- teg</p> Lighttpd - Bug #729: Incorrect PATH_INFO when FastCGI is serving "/"https://redmine.lighttpd.net/issues/729?journal_id=16722007-01-09T17:01:03ZAnonymous
<ul></ul><p>Any idea why this has not been checked in? It doesn't look hackish, given we also port it to all places using the same code.</p> Lighttpd - Bug #729: Incorrect PATH_INFO when FastCGI is serving "/"https://redmine.lighttpd.net/issues/729?journal_id=16732007-01-28T08:04:18ZAnonymous
<ul></ul><p>FWIW, the above patch fixes this bug for mod_scgi as well (in my case, tested with DrProject).</p>
<p>-- shot</p> Lighttpd - Bug #729: Incorrect PATH_INFO when FastCGI is serving "/"https://redmine.lighttpd.net/issues/729?journal_id=16742007-05-11T07:24:58ZAnonymous
<ul></ul><p>I've been hit by the same problem when trying to use Moin as the root URI.</p>
<p>There is no straightforward solution to this, as there is no generic pattern for splitting the URI in SCRIPT_NAME and PATH_INFO. In some cases you want the whole URI in PATH_INFO, in some other cases you want SCRIPT_NAME to be set, and you could imagine thousands of other cases.</p>
<p>I'd like this to be fixed by a URI => PATH_INFO mapping, with a new configuration variable. The result could look like this:</p>
<p>fastcgi.path_info = (<br /> "^/(admin|stats)/(.*)" => ("/$1", "/$2"),<br /> "^(.*)$" => ("", "$1"),<br />)</p>
<p>This way /admin/foo would lead to SCRIPT_NAME="/admin" and PATH_INFO="/foo", while /bar would lead to SCRIPT_NAME="" and PATH_INFO="/bar".</p>
<p>-- joss</p> Lighttpd - Bug #729: Incorrect PATH_INFO when FastCGI is serving "/"https://redmine.lighttpd.net/issues/729?journal_id=16752007-08-14T13:16:24ZAnonymous
<ul></ul><p>The problem is still present on 1.4.16...</p>
<p>-- lindevel</p> Lighttpd - Bug #729: Incorrect PATH_INFO when FastCGI is serving "/"https://redmine.lighttpd.net/issues/729?journal_id=16762008-02-23T15:38:57ZAnonymous
<ul></ul><p>And still in 1.4.18, it seems...</p>
<p>-- lindevel</p> Lighttpd - Bug #729: Incorrect PATH_INFO when FastCGI is serving "/"https://redmine.lighttpd.net/issues/729?journal_id=16772008-03-27T02:48:25ZAnonymous
<ul></ul><p>This patch works great for me. I couldn't get a Mercurial repository (hgwebdir cgi script) working on my web server without it.</p>
<p>Please include it!</p>
<p>-- schnouki</p> Lighttpd - Bug #729: Incorrect PATH_INFO when FastCGI is serving "/"https://redmine.lighttpd.net/issues/729?journal_id=16782008-05-22T03:45:32Zmoo
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Assigned</i></li></ul> Lighttpd - Bug #729: Incorrect PATH_INFO when FastCGI is serving "/"https://redmine.lighttpd.net/issues/729?journal_id=16792008-05-22T08:49:26Zmoo
<ul></ul><p>this problem is fixed in 1.5.0, i'm working out a solution to this for 1.4.x</p> Lighttpd - Bug #729: Incorrect PATH_INFO when FastCGI is serving "/"https://redmine.lighttpd.net/issues/729?journal_id=16802008-05-22T10:04:14Zmoo
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Fixed</i></li><li><strong>Resolution</strong> set to <i>fixed</i></li></ul><p>fixed in r2182, use "fix-root-scriptname" => "enable" to workaround, untested yet. can u pls test it?</p> Lighttpd - Bug #729: Incorrect PATH_INFO when FastCGI is serving "/"https://redmine.lighttpd.net/issues/729?journal_id=61012009-06-18T20:39:32Zstbuehler
<ul><li><strong>Target version</strong> changed from <i>1.4.20</i> to <i>1.4.23</i></li></ul><p>Didn't work, fixed in r2421 (fastcgi) and r2498 (scgi).</p> Lighttpd - Bug #729: Incorrect PATH_INFO when FastCGI is serving "/"https://redmine.lighttpd.net/issues/729?journal_id=61022009-06-18T21:00:42ZPaulM
<ul></ul><p>r2421 fixed the problem for me. Thanks!</p>