Skip to content
Snippets Groups Projects
Commit a2cc3a71 authored by Florent Thiery's avatar Florent Thiery
Browse files

fix https detection (broken if http2 is enabled), refs #20845

parent da674847
No related branches found
No related tags found
No related merge requests found
......@@ -62,7 +62,7 @@ for name in os.listdir(nginx_dir):
errors += 1
continue
domains = matching.groups()[0].strip().split(' ')
https = re.search(r'listen +\w* +ssl;', vhost) is not None \
https = re.search(r'listen +\w* +ssl', vhost) is not None \
or re.search(r'ssl +on;', vhost) is not None
for domain in domains:
if domain == 'localhost':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment