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.

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

share|improve this question
add comment

1 Answer

Check section Deploying to a sub URI in Passenger documentation.

share|improve this answer
add comment

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.