directory listing: 403 Forbidden nginx

June 19, 2015 1.9k views
Nginx

Hello I started using nginx, set up the nginx.conf to my project folder C: / Projects.

I used (AutoIndex: on) to have a list of directories, but does not work

worker_processes  1;

events {
    worker_connections  1024;
}

http {
    include       mime.types;
    default_type  application/octet-stream;
    sendfile        on;


    server {
        listen 80;
        server_name localhost;

        root C:\Project ;
        index index.html index.htm index.php;

        location / {
            autoindex on;
        }
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }
}
Be the first one to answer this question.