diff --git a/web/utils/site.py b/web/utils/site.py index 93c3829ae..af189ea4e 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -1929,6 +1929,8 @@ location ^~ {from} {\n\ conf = re.sub(rep, 'listen 80;', conf, 1) rep = r"listen\s+443.+;" conf = re.sub(rep, 'listen 443 ssl;', conf, 1) + rep = r"listen\s+[::]:443.+;" + conf = re.sub(rep, 'listen [::]:443 ssl;', conf, 1) mw.writeFile(path, conf) path = self.getHostConf(name) @@ -1938,6 +1940,8 @@ location ^~ {from} {\n\ conf = re.sub(rep, 'listen 80 default_server;', conf, 1) rep = r"listen\s+443\s*ssl\s*\w*\s*;" conf = re.sub(rep, 'listen 443 ssl default_server;', conf, 1) + rep = r"listen\s+[::]:443\s*ssl\s*\w*\s*;" + conf = re.sub(rep, 'listen [::]:443 ssl default_server;', conf, 1) mw.writeFile(path, conf) thisdb.setOption('default_site', name)