Welcome! Log In Create A New Profile

Advanced

Re: Restricting access to specific subdirectories

Jonathan Matthews
February 03, 2013 06:54AM
On 3 February 2013 03:27, jdiana <nginx-forum@nginx.us> wrote:
[snip]
> location ~ ^/my_ws$ {
[snip]
> However, if there's anything AFTER that (i.e. my_ws/, my_ws/page2,
> my_ws?parameter1, etc.) it allows them to proceed regardless of IP.
>
> I'm sure it's something required before or after the $, but I can't figure
> it out.

Your problem is absolutely to do with the "$", and if you don't yet
understand regex well enough to fix it, have a read through a simple
intro such as http://www.zytrax.com/tech/web/regex.htm#positioning.

BTW that's a pointer to the exact section you need, but I recommend
you digest at least the first half of that guide - it's not long or
difficult, and will serve you well in the future.

HTH,
Jonathan
--
Jonathan Matthews // Oxford, London, UK
http://www.jpluscplusm.com/contact.html

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Restricting access to specific subdirectories

jdiana February 02, 2013 10:27PM

Re: Restricting access to specific subdirectories

GreenGecko February 02, 2013 10:48PM

Re: Restricting access to specific subdirectories

Jonathan Matthews February 03, 2013 06:54AM

Re: Restricting access to specific subdirectories

Maxim Dounin February 03, 2013 04:54PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 323
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