Apache + Phusion Passenger

Added by Celso Andrade about 9 years ago

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" 

please i need help.

Thank you

Replies (1)

RE: Apache + Phusion Passenger - Added by Sander Datema about 9 years ago

Though not really an answer to your question, but Phusion Passenger turns off everything related to mod_rewrite (including .htaccess).

(1-1/1)