I need help, I started using Nginx now, I was researching on it, I tried it, and I do not know how to configure it properly, but I wanted to enable directory search. In its documentation it is ( AutoIndex: on
) but I use this, it does not appear, of error 403. Nginx is in C:/
, but I configured it to be directed to my C:/projetos
folder. If anyone knows how I'll handle it.
Code to configure it:
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;
}
}