Configuring nginx to return a 404 when a URL matches a pattern

前端 未结 3 410
孤街浪徒
孤街浪徒 2021-02-02 05:12

I want nginx to return a 404 code when it receives a request which matches a pattern, e.g., /test/*. How can I configure nginx to do that?

3条回答
提交回复
热议问题