From 66fa37b68c541b03a5d4cc455bcf781a4da77d69 Mon Sep 17 00:00:00 2001 From: DeNNiiInc Date: Sun, 21 Dec 2025 17:15:00 +1100 Subject: [PATCH] Add nginx config diagnostic script --- check-nginx-config.sh | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 check-nginx-config.sh diff --git a/check-nginx-config.sh b/check-nginx-config.sh new file mode 100644 index 0000000..d1914f5 --- /dev/null +++ b/check-nginx-config.sh @@ -0,0 +1,35 @@ +#!/bin/bash +# Check CloudSticks Nginx configuration structure + +echo "🔍 Checking CloudSticks Nginx Configuration" +echo "============================================" +echo "" + +echo "1. Main nginx.conf location:" +ls -la /etc/nginx-cs/nginx.conf 2>/dev/null || echo "Not found" +echo "" + +echo "2. Checking what nginx.conf includes:" +grep -n "include" /etc/nginx-cs/nginx.conf 2>/dev/null || echo "No includes found" +echo "" + +echo "3. Directory structure:" +ls -la /etc/nginx-cs/ 2>/dev/null +echo "" + +echo "4. Checking for vhosts directories:" +ls -la /etc/nginx-cs/vhosts.d/ 2>/dev/null || echo "No vhosts.d" +ls -la /etc/nginx-cs/sites-available/ 2>/dev/null || echo "No sites-available" +ls -la /etc/nginx-cs/sites-enabled/ 2>/dev/null || echo "No sites-enabled" +echo "" + +echo "5. Our proxy config:" +ls -la /etc/nginx-cs/conf.d/connect5-proxy.conf 2>/dev/null || echo "Proxy config not found" +echo "" + +echo "6. Nginx process:" +ps aux | grep nginx | grep -v grep +echo "" + +echo "7. Listening ports:" +netstat -tlnp 2>/dev/null | grep :443 || ss -tlnp | grep :443