Defect #155
closed
public/.htaccess lacks support for mod_fcgid and adds handlers without checking for their existance
Added by Nils Adermann about 17 years ago.
Updated over 14 years ago.
Description
mod_fcgid is an improved version of mod_fastcgi. It allows the use of "DefaultInitEnv RAILS_ENV production"
in the apache config.
If you try to run redmine with apache and mod_fcgid it will send public/dispatch.fcgi as "text/plain" because
the public/.htaccess connects the .fcgi extension with the "fastcgi-script" handler while fcgid uses
"fcgid-script". Those AddHandler declarations should be inside <IfModule> blocks for the relevant apache
module.
Files
Hi,
You're right, this patch improves the default .htaccess generated
by Rails. It's committed in r934.
mod_fcgid is an improved version of mod_fastcgi.
I know, redmine.org is running with fcgid.
Thanks
This patch does not work when the server has multiple (f)cgi modules installed, which is often the case - mod_f/fastcgi alongside mod_cgi.
If you request a file, mod_rewrite will hit the first rule and apply the condition, but then continue on to the second rule and apply it without the condition to serve dispatch.
A solution is to include the condition with every rule. See attached patch.
- Status changed from Reopened to Closed
Stephan Dale wrote:
If you request a file, mod_rewrite will hit the first rule and apply the condition, but then continue on to the second rule and apply it without the condition to serve dispatch.
My understanding is that the [L] at the end of the rewrite rules should stop all processing (of mod_rewrite rules) from there on. Please open a new bug and relate to this one if this is still an issue.
Also available in: Atom
PDF