Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using Debian squeeze with nginx and mysql. After raking db and loading default data to redmine. When i try to visit redmine in a browser, http://ipaddress:8080/redmine, I get a 404 error

Page not found

The page you were trying to access doesn't exist or has been removed.

My nginx configuration file, below:

server {
    listen      8080;

    server_name  localhost;
    server_name_in_redirect off;

    #charset koi8-r;

    #access_log  logs/host.access.log  main;

    location / {
        root   html;
        index  index.html index.htm index.php;

    location ^~/phpmyadmin/ {
            root /usr/share/phpmyadmin;
            index index.php;
            include fastcgi_params;
            fastcgi_index index.php;
            fastcgi_param SCRIPT_FILENAME /usr/share/$fastcgi_script_name;

    location /redmine/ {
                root /usr/local/lib/redmine-1.2/public;
                access_log /usr/local/lib/redmine-1.2/log/access.log;
                error_log /usr/local/lib/redmine-1.2/log/error.log;
                passenger_enabled on;
                allow all;

       location ~ \.php$ {
                fastcgi_index index.php;
                fastcgi_param SCRIPT_FILENAME /var/www$fastcgi_script_name;
                include fastcgi_params;

        location /phpMyadmin {
                rewrite ^/* /phpmyadmin last;

I don't know what the problem is - this is my second attempt to install redmine in Debian with nginx.

share|improve this question

Check section Deploying to a sub URI in Passenger documentation.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.