Project

General

Profile

Actions

Defect #2021

closed

Apache + PHP + modrails (Phusion Passenger)

Added by Celso Andrade about 16 years ago. Updated about 15 years ago.

Status:
Closed
Priority:
Low
Assignee:
-
Category:
SCM
Target version:
-
Start date:
2008-10-10
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

I'm using Redmine(Svn checkout) for about six months now everthing works great but one thing is that i cant diff php file in repository browse.

When i try to do that i get a 404 page like that

Not Found

The requested URL /repositories/diff/commit/trunk/httpdocs/pedidoscliente.php was not found on this server.
Apache/2.2.8 (Ubuntu) DAV/2 SVN/1.4.6 PHP/5.2.4-2ubuntu5.3 with Suhosin-Patch mod_ruby/1.2.6 Ruby/1.8.6(2007-09-24) Phusion_Passenger/2.0.2 mod_perl/2.0.3 Perl/v5.8.8 Server at projetos.publiweb.com.br Port 80

My vhost apache config

<VirtualHost *>

   ServerName redmine
   DocumentRoot /srv/redmine/public

   SetEnv RAILS_ENV production
   <Directory "/srv/redmine/public">
     php_admin_flag engine off
     Options FollowSymLinks -ExecCGI
     AllowOverride All
     Order allow,deny
     Allow from all
   </Directory>
</VirtualHost>

my .htaccess

# General Apache options
<IfModule mod_fastcgi.c>
    AddHandler fastcgi-script .fcgi
</IfModule>
<IfModule mod_fcgid.c>
    AddHandler fcgid-script .fcgi
</IfModule>
<IfModule mod_cgi.c>
    AddHandler cgi-script .cgi
</IfModule>
Options +FollowSymLinks +ExecCGI
RewriteEngine On
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
<IfModule mod_fastcgi.c>
    RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
</IfModule>
<IfModule mod_fcgid.c>
    RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
</IfModule>
<IfModule mod_cgi.c>
    RewriteRule ^(.*)$ dispatch.cgi [QSA,L]
</IfModule>

ErrorDocument 500 "<h2>Application error</h2>Rails application failed to start properly" 

Actions

Also available in: Atom PDF