Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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;
      server_name some.another.ru;
      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: some.another.ru, request: "GET / HTTP/1.1", host: "some.another.ru" 
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: some.another.ru, request: "GET /favicon.ico HTTP/1.1", host: "some.another.ru" 

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

share|improve this question

1 Answer 1

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.