1
0
mirror of https://github.com/thib8956/nginx-proxy synced 2024-11-22 11:56:31 +00:00

define a default virtual host

which replies with HTTP code `503 Service Temporarily Unavailable`
This commit is contained in:
Thomas LÉVEIL 2014-06-03 23:32:29 +02:00
parent a794d6db46
commit 2d8d15d606

View File

@ -1,3 +1,8 @@
server {
listen 80 default_server;
server_name _; # This is just an invalid value which will never trigger on a real hostname.
return 503;
}
{{ range $host, $containers := groupBy $ "Env.VIRTUAL_HOST" }} {{ range $host, $containers := groupBy $ "Env.VIRTUAL_HOST" }}
upstream {{ $host }} { upstream {{ $host }} {