我试图指定一个自定义404页面并保留该URL,但是使用下面的命令会给出错误的nginx: [emerg] "proxy_pass" cannot have URI part in location givenlocation, or inside "if" statement, or inside "limit_except" block in... error_page 404@<e
我希望对丢失文件和无效目录的请求重定向到自定义的404错误页面。我相信这可以用两种方法来完成。# redirect invalid requests and missing files to the not-found page RewriteRule ^(.*)$ http://www.example.com/not-found.html [L]
# same i