diff --git a/HowtoNginx.md b/HowtoNginx.md index 3fa20750..c117369e 100644 --- a/HowtoNginx.md +++ b/HowtoNginx.md @@ -118,6 +118,16 @@ server_name_in_redirect off; index index.html; ~~~ +Le fichier `nginx/snippets/evolinux_server_custom` contient notre configuration à inclure dans chaque bloc "server" : + +~~~ +location ~ /\.(inc|git|bak|env) { + # We don't want to let the client know a file exist on the server, + # so we return 404 "Not found" instead of 403 "Forbidden". + return 404; +} +~~~ + Le fichier `/etc/nginx/snippets/ipaddr_whitelist` centralise les adresses IP privilégiées, on peut ainsi utiliser `include /etc/nginx/snippets/ipaddr_whitelist;` à différents endroits dans la configuration de Nginx sans dupliquer ces adresses : ~~~