diff --git a/tests/test_ssl.py b/tests/test_ssl.py
index a99608c9e43504528b5c5a0497b6a263e9f7577b..17c03bdd74e057f6ee9f3c17c5b10efe618f457b 100755
--- a/tests/test_ssl.py
+++ b/tests/test_ssl.py
@@ -14,6 +14,10 @@ GREEN = '\033[92m'
 RED = '\033[91m'
 DEF = '\033[0m'
 
+if not os.path.isdir('/etc/nginx'):
+    print('Nginx not found, skipping test')
+    sys.exit(0)
+
 os.chdir(os.path.dirname(__file__))
 if not os.path.isfile('../utils.py'):
     print('conf.sh not found')