title: Configuring nginx to return a 404 when a URL matches a pattern
body: <p>I want nginx to return a 404 code when it receives a request which matches a pattern, e.g., <code>/test/*</code>. How can I configure nginx to do that?</p>