set +e echo "=== 清理临时探针与标记文件 ===" rm -f /www/server/panel/vhost/nginx/zz-probe-scheme.conf rm -f /www/server/nginx/html/probe-ai1net.txt /www/server/nginx/html/.well-known/acme-challenge/probe-token rm -f /www/wwwroot/default/probe-ai1net.txt /www/wwwroot/47.77.182.89/probe-ai1net.txt /www/wwwroot/dsh.alotbuy.com/probe-ai1net.txt rmdir /www/server/nginx/html/.well-known/acme-challenge /www/server/nginx/html/.well-known 2>/dev/null nginx -t 2>&1 | tail -1 nginx -s reload 2>&1 | tail -1 sleep 1 echo "=== 复验:Host=ai1net.com 已回到默认 404(探针已撤) ===" curl -s -o /dev/null -w "code=%{http_code}\n" -H "Host: ai1net.com" http://127.0.0.1/ echo "=== 复验:门户 alotbuy.com 仍 200 ===" curl -s -o /dev/null -w "alotbuy 门户 => %{http_code}\n" -H "Host: alotbuy.com" http://127.0.0.1/ echo "=== 建暂存目录 ===" mkdir -p /www/server/panel/vhost/nginx/_pending-ai1net ls -ld /www/server/panel/vhost/nginx/_pending-ai1net echo "=== 确认临时文件已清 ===" ls /www/server/panel/vhost/nginx/ | grep -E "zz-probe|ai1net" || echo "(vhost 目录无 ai1net/zz-probe 残留 ✅)" ls /www/server/nginx/html/ | head -6