Skip to content

Commit c7e47ed

Browse files
committed
- Added "ipv6only=on" to the IPv6 listen lines in the nginx vhost template to avoid "[emerg]: bind() to [::]:80 failed (98: Address already in use)" errors.
1 parent 8e2c2e1 commit c7e47ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/conf/nginx_vhost.conf.master

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
server {
22
listen <tmpl_var name='ip_address'>:80;
33
<tmpl_if name='ipv6_enabled'>
4-
listen [<tmpl_var name='ipv6_address'>]:80;
4+
listen [<tmpl_var name='ipv6_address'>]:80 ipv6only=on;
55
</tmpl_if>
66

77
<tmpl_if name='ssl_enabled'>
88
listen <tmpl_var name='ip_address'>:443 ssl;
99
<tmpl_if name='ipv6_enabled'>
10-
listen [<tmpl_var name='ipv6_address'>]:443 ssl;
10+
listen [<tmpl_var name='ipv6_address'>]:443 ssl ipv6only=on;
1111
</tmpl_if>
1212
ssl_certificate <tmpl_var name='document_root'>/ssl/<tmpl_var name='ssl_domain'>.crt;
1313
ssl_certificate_key <tmpl_var name='document_root'>/ssl/<tmpl_var name='ssl_domain'>.key;

0 commit comments

Comments
 (0)