Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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_pass 127.0.0.1:9000;
            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_pass 127.0.0.1:9000;
                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

1 Answer 1

Check section Deploying to a sub URI in Passenger documentation.

share|improve this answer

Your Answer

 
discard

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.