diff --git a/tests/test_nginx_vhosts.py b/tests/test_nginx_vhosts.py
index 57176e9a9a1f4c538232b7365be911e51e1242ce..cc9aef5685000a0fce4f59dddb497b17c47d2bec 100755
--- a/tests/test_nginx_vhosts.py
+++ b/tests/test_nginx_vhosts.py
@@ -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':