Francis Daly
November 27, 2014 03:00AM
On Wed, Nov 26, 2014 at 07:24:46PM -0500, goversation wrote:

Hi there,

> but I meant that location allow only "/" and "/blah"
> I want to deny the others except "/"

Use three locations.

location = / { # allow }
location /blah { # allow }
location / { # deny }

f
--
Francis Daly francis@daoine.org

_______________________________________________
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: 315
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