Skip to content
Snippets Groups Projects
Commit f9d776f1 authored by Stéphane Diemer's avatar Stéphane Diemer
Browse files

Fixed nginx vhost status code check.

parent 1a2603b4
No related branches found
No related tags found
No related merge requests found
......@@ -73,7 +73,7 @@ def test_vhost(ports_info=None, domains=None, resolution_ignored=None, celerity_
req_time = 0
else:
code = req.status_code
if code not in (200, 401, 403) and domain != 'localhost' and code != 404:
if domain != 'localhost' and code not in (200, 401, 403) or domain == 'localhost' and code not in (200, 401, 403, 404):
sys.stdout.write('\033[91mKO (%s, %sms)\033[0m' % (code, req_time))
req_error = True
else:
......
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