forked from evolix/ansible-roles
nginx: Add snippet for custom server block config.
This commit is contained in:
parent
c4fab71d7a
commit
168b0fa9b7
7
nginx/files/nginx/snippets/evolinux_server_custom
Normal file
7
nginx/files/nginx/snippets/evolinux_server_custom
Normal file
|
@ -0,0 +1,7 @@
|
|||
# Evolinux custom configuration, to be used in all server blocks
|
||||
|
||||
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;
|
||||
}
|
|
@ -49,6 +49,8 @@ server {
|
|||
stub_status on;
|
||||
access_log off;
|
||||
}
|
||||
|
||||
include /etc/nginx/snippets/evolinux_server_custom;
|
||||
}
|
||||
|
||||
server {
|
||||
|
|
Loading…
Reference in a new issue