Hi, from my "default" configuration:
# You may add here your
# server {
# ...
# }
# statements for each of your virtual hosts
server {
listen 80;
location / {
root /var/www/nginx-default;
index index.html index.htm;
}
location /doc {
root /usr/share;
autoindex on;
allow 127.0.0.1;
deny all;
}
location /images {
root /usr/share;
autoindex on;
}
}
This works fine. However, if i add in
location /foo {
root /usr/share;
autoindex on;
}
say right beneath the /images location directive
and i restart nginx,
nginx returns a 404 on request for /foo
Is this correct or am i missing something?
Thanks