Hi 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 url 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.

i am posting 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 dont know what is the problem.. someone help me over this.. this is my second try to install redmine in debian os with nginx...

link|improve this question
feedback

1 Answer

Check section Deploying to a sub URI in Passenger documentation.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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