I'm trying to setup location directive to match my request but can't get it working.
Below is my sample request:
/APP/public/api/v1/item/100/type
location ~* ^/APP/public/api/v1/item/(.*)/type {
try_files /APP/data/type/$1.json @apache;
}
If I set like below it works:
location = ^/APP/public/api/v1/item/100/type {
try_files /APP/data/type/100.json @apache;
}
Am I missing anything ? Thanks.