redmine 安装后出现 404 错误

redmine 安装后出现 404 错误

我正在使用 Debian squeeze 和 nginx 和 mysql。在 rake db 并将默认数据加载到 redmine 后。当我尝试在浏览器中访问 redmine 时,http://ipaddress:8080/redmine我收到 404 错误

Page not found

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

我的 nginx 配置文件如下:

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;
        }

我不知道问题是什么——这是我第二次尝试在 Debian 中使用 nginx 安装 redmine。

相关内容