diff --git a/default.conf b/default.conf index d813b8b513358c1d0e45da6e3d51fc1df40a142f..8c8b3f3e2b2cf202fcaedf6c543f5015949fad29 100644 --- a/default.conf +++ b/default.conf @@ -26,9 +26,9 @@ server { location ~ ^/(contacts) { root /usr/share/nginx/web; -# error_page 403 /errors/403/; + error_page 403 /errors/403/index.html; if ($giveaccess = 0) { - return /errors/403/; + return 403; } }