Files
dsh_ai1net_server/归档/迁移/域名迁移_ai1net_20260919/_g5.sh
T

11 lines
422 B
Bash
Raw Normal View History

set -u
echo "=== 全部 443 监听块:来源文件 + server_name ==="
nginx -T 2>/dev/null | awk '
/^# configuration file / { f=$4 }
/listen[^;]*443/ { inblk=1; file=f; sn="" }
inblk && /server_name/ { gsub(/^[ \t]+/,""); sn=sn" "$0 }
inblk && /^}/ { if (sn!="") print file" |"sn; inblk=0 }
'
echo
echo "=== alotbuy.com.conf(现网,前 60 行)==="
sed -n '1,60p' /www/server/panel/vhost/nginx/alotbuy.com.conf