mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 01:39:25 +08:00
Update site.py
This commit is contained in:
+1
-1
@@ -1947,7 +1947,7 @@ location ^~ {from} {\n\
|
||||
conf = mw.readFile(path)
|
||||
rep = r"listen\s+80\s*;"
|
||||
conf = re.sub(rep, 'listen 80 default_server;', conf, 1)
|
||||
rep = r"listen\s+\[\:\:\]\:80\s*ssl\s*\w*\s*;"
|
||||
rep = r"listen\s+\[\:\:\]\:80\s*\w*\s*;"
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user