Project

General

Profile

Routing error using Apache/Fastcgi and fresh install

Added by Callum McLean over 14 years ago

Hi,

I'm trying to get Redmine 0.9.3 up and running on an Ubuntu server, with version 1.8.7 of Ruby and 2.3.5 of Rails.

After following the installation instructions the Webrick server is running fine but if I try to access the app using fastcgi I get the following message:

No route matches "/redmine/public/" with {:method=>:get}

I'm not using the Apache alias directive.

On the same server, I have Redmine 0.8.7 up and running and using Fastcgi without any problems.

If anyone has any pointers to possible solutions that would be great.

Thanks,

Callum.


Replies (6)

RE: Routing error using Apache/Fastcgi and fresh install - Added by Callum McLean over 14 years ago

Hi Eric,

Thanks for getting back to me. I've followed the suggestions and, while Redmine is now running, the stylesheets and javascript links are now broken because they are now absolute i.e.

href="/redmine-new/stylesheets/jstoolbar.css?1267352889"

rather than relative. Did this happen to you too?

Thanks again, Callum.

RE: Routing error using Apache/Fastcgi and fresh install - Added by Eric Voisard over 14 years ago

No problem here, as far as I can tell...

My stylesheets and javascript links look similar to yours, but they're correct:

href="/rm/stylesheets/application.css?1266316145"

Note that I did what Felix suggested: I moved my Redmine tree out of htdocs, I removed my Apache "rm" alias and I just made a "rm" symlink pointing to redmine/public in htdocs...

Eric

RE: Routing error using Apache/Fastcgi and fresh install - Added by Callum McLean over 14 years ago

Looks like it's a similar issue, and not the relative nature of the URLs.

If I try to access the stylesheet directly I get the following:

No route matches "/stylesheets/jstoolbar.css" with {:method=>:get}

Feels a bit like I'm going round in circles!

Callum.

RE: Routing error using Apache/Fastcgi and fresh install - Added by Eric Voisard over 14 years ago

Have a look at Greg Sarjeant recent post Installing redmine as a sub-uri under Cherokee

Not the same setup but he seems to have exactly the same problem as you: he loses all formatting and links to stylesheets in pages seem to be dead...

What I find strange is that the error you get is in production.log, that is, a Redmine application error. But when you try direct access to a Redmine stylesheet with a full URL, it should be plain stupid http access to a file. If there was to be a 404, don't you think it should come from the web server, not from Redmine... Same for Greg...

Eric

RE: Routing error using Apache/Fastcgi and fresh install - Added by Andrew M-Y over 14 years ago

I've just run into the same problem on Dreamhost. If you symlinked redmine/public directory to the document root, add the following line to the .htaccess file:

PassengerResolveSymlinksInDocumentRoot on

It's off by default since some relatively new Phusion Passenger version.

    (1-6/6)