Welcome! Log In Create A New Profile

Advanced

How to catch a request that has a given word in url?

Fernando Perez
August 09, 2010 05:22AM
Hi,

I am trying to catch any request that has WORD in the url, eg:

catch: http://example.org/whatever/path/WORD/file.pdf

don't catch: http://example.org/some/other/path/anotherfile.jpg

and if simple to do, don't catch: http://example.org/folder/WORD.doc


I tried:

location ^~ /WORD/ {}

location WORD {}

location ~* WORD {}


But none seemed to do want I want*.

Thanks for your advice :)


*: unless I'm hitting again this stupid caching thing, but this time I
tried in safari and it didn't work either, so it should be cleared.
--
Posted via http://www.ruby-forum.com/.

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

How to catch a request that has a given word in url?

Fernando Perez August 09, 2010 05:22AM

Re: How to catch a request that has a given word in url?

Igor Sysoev August 09, 2010 05:24AM

Re: How to catch a request that has a given word in url?

Fernando Perez August 09, 2010 05:58AM

Re: How to catch a request that has a given word in url?

Igor Sysoev August 09, 2010 06:00AM

Re: How to catch a request that has a given word in url?

Fernando Perez August 09, 2010 06:02AM

Re: How to catch a request that has a given word in url?

Igor Sysoev August 09, 2010 06:12AM

Re: How to catch a request that has a given word in url?

Fernando Perez August 09, 2010 06:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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