Use proper ngx code for "access denied" page.

This commit is contained in:
opi 2014-06-02 18:09:43 +02:00
parent a938b6f4af
commit ad63afbfad

View file

@ -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