test nginx 2
This commit is contained in:
parent
3c883da6b8
commit
77bb8de20c
3 changed files with 15 additions and 537 deletions
|
@ -29,6 +29,20 @@ http {
|
|||
#gzip on;
|
||||
|
||||
include /etc/nginx/conf.d/*.conf;
|
||||
|
||||
server {
|
||||
server_name _; # This is just an invalid value which will never trigger on a real hostname.
|
||||
listen 80;
|
||||
access_log /var/log/nginx/access.log vhost;
|
||||
error_page 503 /503.html;
|
||||
location = /503.html {
|
||||
root /usr/share/nginx/html;
|
||||
internal;
|
||||
}
|
||||
location / {
|
||||
return 503;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
daemon off;
|
Reference in a new issue