Project

General

Profile

Redmine 404 error while browsing Git repository for .php files (using lighttpd)

Added by mitc0185 over 15 years ago

Hello, I've also posted this over in the Redmine forums. I'm hoping someone here can help because this site is using Redmine.

When browsing a Git Repository, if I click on a ".php" file, it gives me a 404 not found (Redmine 404, not lighttpd 404), instead of showing me the detail page for that particular file.

This is an issue that's described in the Redmine FAQ, but the solution that's provided is for Apache, not lighttpd. Essentially, the FAQ indicates that you need to turn off .php for the particular virtual host.

http://www.redmine.org/wiki/redmine/FAQ#I-get-a-404-error-when-I-try-to-view-or-diff-a-PHP-file

Has anyone found a workaround for this using lighttpd? I can't figure out how to do it.

The 404 that I get is the redmine 404, not the server 404, so I believe something is going wrong at the application level.


Replies (3)

RE: Redmine 404 error while browsing Git repository for .php files (using lighttpd) - Added by stbuehler over 15 years ago

Works for us...

http://redmine.lighttpd.net/projects/lighttpd/repository/entry/branches/lighttpd-1.4.x/tests/docroot/www/get-env.php

I don't think it is an issue with handling .php with php as you see the redmine 404 (unless you use an old version and use mod_cgi for php, in which case you should just disable cgi for the redmine vhost).

RE: Redmine 404 error while browsing Git repository for .php files (using lighttpd) - Added by mitc0185 over 15 years ago

Hi stbuehler, thanks for replying.

This would be the equivalent URL to what I'm having an issue with:

http://redmine.lighttpd.net/projects/lighttpd/repository/changes/branches/lighttpd-1.4.x/tests/docroot/www/get-env.php

(note "changes" not "entry")

How do I disable cgi for the redmine vhost? I tried to figure that out, but didn't seem to have any success.

RE: Redmine 404 error while browsing Git repository for .php files (using lighttpd) - Added by stbuehler over 15 years ago

Disable cgi and fastcgi for the vhost.

cgi.assign = ( )
fastcgi.server = ( )

Then enable fastcgi.server again for the redmine handling. If the redmine fastcgi.server entry was in the vhost conditional, then don't use the fastcgi.server line above. Make sure you are setting fastcgi.server with "=" and not with "+=".

If you still have problems post your redmine vhost config here.

    (1-3/3)