403 Forbidden

Posted by demas on Server Fault See other posts from Server Fault or by demas
Published on 2011-06-02T09:10:03Z Indexed on 2012/09/05 9:40 UTC
Read the original article Hit count: 425

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?

© Server Fault or respective owner

Related posts about nginx

Related posts about ruby-on-rails