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

Fernando Perez lists at ruby-forum.com
Mon Aug 9 13:59:02 MSD 2010


I'll use actual values:

A public request looks like:

/uploads/2009/product.jpg


An a restricted request looks like:

/uploads/2009/restricted/product.mp4


So I have:

location ~ /restricted/ {
  internal;
  root ...;
}

location ^~ /uploads/ {
  root ...;
}


Is it my /uploads/ location which fits maybe better the request and 
confuses nginx?
-- 
Posted via http://www.ruby-forum.com/.



More information about the nginx mailing list