14 lines
269 B
Text
14 lines
269 B
Text
|
|
server {
|
||
|
|
listen 80;
|
||
|
|
server_name {{ domain_name }};
|
||
|
|
|
||
|
|
root /var/www/{{ domain_name }};
|
||
|
|
index index.html;
|
||
|
|
|
||
|
|
location / {
|
||
|
|
auth_basic "Accès restreint";
|
||
|
|
auth_basic_user_file {{ htpasswd_file }};
|
||
|
|
try_files $uri $uri/ =404;
|
||
|
|
}
|
||
|
|
}
|