diff --git a/tests/test_nginx_conf.sh b/tests/test_nginx_conf.sh
new file mode 100755
index 0000000000000000000000000000000000000000..795259af998c35e11e3d3c631c1c8c33f66373ea
--- /dev/null
+++ b/tests/test_nginx_conf.sh
@@ -0,0 +1,6 @@
+#!/bin/bash
+set -e
+
+if ( which nginx >/dev/null ); then
+    nginx -t
+fi