Project

General

Profile

Redmine 1.03 & Apache 2.2 newbie problem

Added by Marko Krens over 13 years ago

Hello,

for the past few days I am trying to configure Redmine 1.0.3 to work with Apache 2.2 on Opensolaris. Redmine is working OK with Webrick, but with Apache there is only white page with text and login form. It looks like css is not working.
Log files from Apache:

192.168.2.12 - - [05/Nov/2010:07:40:00 +0100] "GET / HTTP/1.1" 200 2987
192.168.2.12 - - [05/Nov/2010:07:40:03 +0100] "GET /stylesheets/application.css?1282192229 HTTP/1.1" 404 484
192.168.2.12 - - [05/Nov/2010:07:40:03 +0100] "GET /javascripts/effects.js?1288572112 HTTP/1.1" 404 484
192.168.2.12 - - [05/Nov/2010:07:40:03 +0100] "GET /stylesheets/jstoolbar.css?1221671885 HTTP/1.1" 404 484
192.168.2.12 - - [05/Nov/2010:07:40:03 +0100] "GET /javascripts/prototype.js?1288572112 HTTP/1.1" 404 484
192.168.2.12 - - [05/Nov/2010:07:40:03 +0100] "GET /favicon.ico?1279252023 HTTP/1.1" 404 484
192.168.2.12 - - [05/Nov/2010:07:40:04 +0100] "GET /favicon.ico?1279252023 HTTP/1.1" 404 484
192.168.2.12 - - [05/Nov/2010:07:40:04 +0100] "GET /javascripts/effects.js?1288572112 HTTP/1.1" 404 484
192.168.2.12 - - [05/Nov/2010:07:40:07 +0100] "GET /favicon.ico?1279252023 HTTP/1.1" 404 484
192.168.2.12 - - [05/Nov/2010:07:40:03 +0100] "GET /javascripts/dragdrop.js?1288572112 HTTP/1.1" 404 484
192.168.2.12 - - [05/Nov/2010:07:40:03 +0100] "GET /javascripts/application.js?1280054135 HTTP/1.1" 404 484
192.168.2.12 - - [05/Nov/2010:07:40:03 +0100] "GET /javascripts/controls.js?1288572112 HTTP/1.1" 404 484
192.168.2.12 - - [05/Nov/2010:07:40:10 +0100] "GET /javascripts/application.js?1280054135 HTTP/1.1" 404 484
192.168.2.12 - - [05/Nov/2010:07:40:10 +0100] "GET /stylesheets/jstoolbar.css?1221671885 HTTP/1.1" 404 484

Thank you for help :)


Replies (5)

RE: Redmine 1.03 & Apache 2.2 newbie problem - Added by Felix Schäfer over 13 years ago

These are all valid requests. How do you serve redmine with apache, what does the config look like, is it in a subdirectory, …?

RE: Redmine 1.03 & Apache 2.2 newbie problem - Added by Emeric Grange over 13 years ago

I have very similar problem. The redmine apache virtual host logs give the same 404 errors.
I use apache 2.2 and passenger 3.0 on debian 5.

Redmine is in the following directory : "/home/redmine/www/redmine"
I just migrate from redmine 0.9.3 to 1.0.3, and now I lost all graphics. You can see the result here code.emericdev.com.

And my virtual host is :

<VirtualHost *:80>
        SetEnv RAILS_ENV production
        ServerName code.emericdev.com
        ServerAdmin emeric.grange@gmail.com
        DocumentRoot /home/redmine/www/redmine/public

        RailsEnv production
        PassengerAppRoot /home/redmine/www/redmine

        <Directory /home/redmine/www/redmine/public>
                Options Indexes ExecCGI FollowSymLinks -MultiViews
                Allow from all
                AllowOverride all
        </Directory>

        ErrorLog /var/log/apache2/redmine.error.log
        LogLevel warn
        CustomLog /var/log/apache2/redmine.access.log combined
</VirtualHost>

RE: Redmine 1.03 & Apache 2.2 newbie problem - Added by Holger Just over 13 years ago

With passenger, either remove the public/.htaccess file or set AllowOverride None in your Apache config. Else, the rewrite rules in the .htaccess file which are needed for (f)cgi setup are going to mess with your static files.

RE: Redmine 1.03 & Apache 2.2 newbie problem - Added by Emeric Grange over 13 years ago

As weird as it may sound, I resolved my problem by blacklisting cgi and cgid module, forcing apache to use fcgid 1.3.6...
But I take note of the .htaccess tip, thanks !

RE: Redmine 1.03 & Apache 2.2 newbie problem - Added by Marko Krens over 13 years ago

Thank you all. I have installed mod_rails v3.0 everything is working OK :)

    (1-5/5)