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

Fernando Perez lists at
Mon Aug 9 13:16:53 MSD 2010


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


don't catch:

and if simple to do, don't catch:

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

More information about the nginx mailing list