server {
- listen [::]:80 ipv6only=off fastopen=1024 default_server;
+ listen [::]:80 ipv6only=on fastopen=1024 default_server;
+ listen *:80 fastopen=1024 default_server;
server_name _;
default_type text/html;
return 404 '<html><head><title>404 Not Found</title></head><body bgcolor="white"><center><h1>404 Not Found</h1></center><hr><center>default imagery server vhost. Please use correct URL.</center></body></html>';
server {
- listen [::]:80;
- listen [::]:443 ssl;
+ listen [::]:80 ipv6only=on;
+ listen *:80;
+ listen [::]:443 ipv6only=on ssl;
+ listen *:443 ssl;
server_name <%= @name %> a.<%= @name %> b.<%= @name %> c.<%= @name %><% @aliases.each do |alias_name| %> <%= alias_name %> a.<%= alias_name %> b.<%= alias_name %> c.<%= alias_name %><%- end -%>;
ssl_certificate /etc/ssl/certs/<%= @name %>.pem;