redmine安装后会出现404错误

我正在用nginx和mysql使用Debian压缩。 在耙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. 

我的nginxconfiguration文件如下:

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

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

检查部分在Passenger文档中部署到一个子URI 。