Welcome! Log In Create A New Profile

Advanced

how to block excluding specific url in nginx?

November 26, 2014 07:39AM
hi. i have a trouble and question!
my current configuration in nginx is like ..
only "/blah/" url can access..

================================
server {
location / {
return 403;
}
location ^~ /blah/ {
proxy_pass http://127.0.0.1:8888;
}
}
================================

but now i have to access "/" location, too
how to block excluding specific url in nginx?

to conclude,
i want to access the only "/" and "/blah/" (for example, aaa.com and aaa.com/blah/~~)

can anyone help me?
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: 120
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready