nginx: [emerg] unknown directive "if($request_uri" in

Nginx About 125 words

错误

nginx: [emerg] unknown directive "if($request_uri" in

解决

if($间需要有空格。

例如:

if ($request_uri ~ '/admin') {
    return 404;
}
Views: 8,314 · Posted: 2019-09-29

————        END        ————

Give me a Star, Thanks:)

https://github.com/fendoudebb/LiteNote

扫描下方二维码关注公众号和小程序↓↓↓

扫描下方二维码关注公众号和小程序↓↓↓


Today On History
Browsing Refresh