Welcome! Log In Create A New Profile

Advanced

Re: how to block excluding specific url in nginx?

B.R.
November 27, 2014 03:38PM
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@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@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

how to block excluding specific url in nginx?

goversation November 26, 2014 07:39AM

Re: how to block excluding specific url in nginx?

Francis Daly November 26, 2014 07:50AM

Re: how to block excluding specific url in nginx?

goversation November 26, 2014 07:24PM

Re: how to block excluding specific url in nginx?

goversation November 26, 2014 07:24PM

Re: how to block excluding specific url in nginx?

Francis Daly November 27, 2014 03:00AM

Re: how to block excluding specific url in nginx?

goversation November 27, 2014 07:09PM

Re: how to block excluding specific url in nginx?

B.R. November 27, 2014 03:38PM

Re: how to block excluding specific url in nginx?

goversation November 27, 2014 07:10PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 179
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready