I resolved my problem, if i configure like follow:
location = /login {
index login2.html;
}
It'll show the 403 error.
[error] 4212#2916: *2 directory index of "D:\path/to/login/" is forbidden
I've tried autoindex on
, but not working.
If i change my configure like this, it works.
location = /login/ {
index login2.html;
}
I think the exact matching, if it's a path should be a directory.