Solution 1:
if ( req.url ~ "^/a/?($|\?)" ) {
return (pass);
}
Will match, e.g./a
and /a/
, and /a?something=...
.
Check here.
if ( req.url ~ "^/a/?($|\?)" ) {
return (pass);
}
Will match, e.g./a
and /a/
, and /a?something=...
.
Check here.