Make nginx listen on :: for ipv6
This commit is contained in:
@@ -7,9 +7,11 @@ map $http_upgrade $connection_upgrade {
|
||||
server {
|
||||
<% if (vhost) { %>
|
||||
listen 443 http2;
|
||||
listen [::]:443 http2;
|
||||
server_name <%= vhost %>;
|
||||
<% } else { %>
|
||||
listen 443 http2 default_server;
|
||||
listen [::]:443 http2 default_server;
|
||||
<% } %>
|
||||
|
||||
ssl on;
|
||||
|
||||
Reference in New Issue
Block a user