From ad63afbfadb357d01c28f03a724f512b8bd580d8 Mon Sep 17 00:00:00 2001 From: opi Date: Mon, 2 Jun 2014 18:09:43 +0200 Subject: [PATCH] Use proper ngx code for "access denied" page. --- access.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/access.lua b/access.lua index dd34f32..d4b07c5 100644 --- a/access.lua +++ b/access.lua @@ -319,7 +319,7 @@ function serve(uri) -- Access to directory root: forbidden if string.ends(rel_path, "/") then - return ngx.exit(403) + return ngx.exit(ngx.HTTP_FORBIDDEN) end -- Try to get file content