how to block excluding specific url in nginx?

B.R. reallfqq-nginx at yahoo.fr
Thu Nov 27 20:35:28 UTC 2014


Make a location that matches each URI exactly and copy-paste content.

As Francis explained, location matches are inclusive, not exclusive, thus
everything you do not match goes elsewhere.
---
*B. R.*

On Thu, Nov 27, 2014 at 9:40 AM, goversation <nginx-forum at nginx.us> wrote:

> thanks for replying.
> but I meant that location allow only "/" and  "/blah".
> I want to deny the others except "/"  .
> example is as follows.
>
> ================
> abc.com/ = OK
> abc.com/blah/ = OK
> abc.com/dd = 403
> abc.com/... = 403
> ================
>
> help me again!
>
> Posted at Nginx Forum:
> http://forum.nginx.org/read.php?2,255147,255168#msg-255168
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20141127/288e5540/attachment-0001.html>


More information about the nginx mailing list