← back to Japan Enrich
japan: nginx-diagnose.sh (read-only) to find the conflicting server_name block behind the cert failure
0dd7b3248fb907b3f22e44bd675aecfe522a97a9 · 2026-07-06 18:39:55 -0700 · Steve
Files touched
A scripts/nginx-diagnose.sh
Diff
commit 0dd7b3248fb907b3f22e44bd675aecfe522a97a9
Author: Steve <steve@designerwallcoverings.com>
Date: Mon Jul 6 18:39:55 2026 -0700
japan: nginx-diagnose.sh (read-only) to find the conflicting server_name block behind the cert failure
---
scripts/nginx-diagnose.sh | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/scripts/nginx-diagnose.sh b/scripts/nginx-diagnose.sh
new file mode 100644
index 0000000..abc7360
--- /dev/null
+++ b/scripts/nginx-diagnose.sh
@@ -0,0 +1,15 @@
+#!/usr/bin/env bash
+# READ-ONLY: find which nginx confs declare the distributor hostnames (the conflict source),
+# so we know which block to clean. Changes nothing. Run under Steve.
+ssh root@45.61.58.125 bash -s <<'REMOTE'
+echo "=== enabled confs that declare our distributor hostnames ==="
+grep -rl "eijffinger.designerwallcoverings.com\|koroseal-sg.designerwallcoverings.com" /etc/nginx/sites-enabled/ /etc/nginx/sites-available/ 2>/dev/null
+echo
+echo "=== each such conf: its server_name / listen / proxy_pass / acme lines ==="
+for f in $(grep -rl "designerwallcoverings.com" /etc/nginx/sites-enabled/ 2>/dev/null); do
+ if grep -qE "eijffinger|koroseal-sg|distributor-microsites|japan.designerwallcoverings" "$f"; then
+ echo "--- $f ---"
+ grep -nE "server_name|listen |proxy_pass|acme-challenge|ssl_certificate " "$f" | head -25
+ fi
+done
+REMOTE
← 1398b4c japan: +242 Singapore wallcoverings onboarded; nginx setup r
·
back to Japan Enrich
·
japan: nginx-fix-conflict.sh — strip the 19 distributor host d2fb29e →