I would like to restrict an nginx server to one directory, example/ in this case. I would have presumed it's something like this but it doesn't work.
location ~ !(^/example) {
return 403;
}
I would like to restrict an nginx server to one directory, example/ in this case. I would have presumed it's something like this but it doesn't work.
location ~ !(^/example) {
return 403;
}
1 Answers