Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Here is my Nginx config:

user pass users;

worker_processes  1;

events {
    worker_connections  1024;

http {
    passenger_root /usr/lib64/ruby/gems/1.8/gems/passenger-3.0.7;
    passenger_ruby /usr/bin/ruby;
    include       mime.types;
    default_type  application/octet-stream;
    sendfile        on;
    keepalive_timeout  65;

    server {
      listen 80;
      root /www/public/redmine; 
      passenger_enabled on;
      rails_env development;

Here is Nginx log:

2011/06/02 12:53:57 [error] 45986#0: *1 directory index of "/www/public/redmine/" is forbidden, client: **.*.**.***, server:, request: "GET / HTTP/1.1", host: "" 
2011/06/02 12:53:59 [error] 45986#0: *1 open() "/www/public/redmine/favicon.ico" failed (2: No such file or directory), client: **.*.**.***, server:, request: "GET /favicon.ico HTTP/1.1", host: "" 

What is the reason of this error and how can I fix it?

share|improve this question
up vote 1 down vote accepted

You need to point root directive to public sub-folder of redmine installation. In your case you should write root /www/public/redmine/public; instead of root /www/public/redmine;.

share|improve this answer

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.