Welcome! Log In Create A New Profile

Advanced

Match Query string in location

Posted by Radek 
Match Query string in location
April 01, 2010 09:44AM
I want to match query string in location.
Is it possible?

i have requests:
http://example.cz/test.jpg
http://example.cz/test.jpg?test=1

my locations:

[i]location /[/i] { //match any requests


[i]location ~* .*\?.*$ {[/i] //could be match only test.jpg?test=1, but no :-(

I don't' want to use [i]if[/i] condition.
I want to do this with [i]location[/i]...

Thanks
Re: Match Query string in location
April 01, 2010 05:21PM
Can't be done.

--
Jim Ohlstein
Sorry, only registered users may post in this forum.

Click here to login

Online Users

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