location uri wildcard

Jonathan Matthews contact at jpluscplusm.com
Wed Jun 11 17:10:10 UTC 2014


On 10 June 2014 17:31, grd2345 <nginx-forum at nginx.us> wrote:
> http://www.mysite.com/ClassScheduler.aspx
[snip]
> I basically need a wild card to detect ClassScheduler.aspx from the above
> old urls

This assumption looks wrong. Check out how location stanzas work:
http://nginx.org/r/location
Hint: locations in their simplest state just match path *prefixes* ...

Also check the first parameter that a "rewrite" takes ... consider if
you could use this functionality to avoid specifying a location
/entirely/: http://nginx.org/r/rewrite

J



More information about the nginx mailing list