N
nginx
HTTP 404

No server configured for this host此主機沒有對應的伺服器設定

The request reached this nginx instance, but no server block matched the requested Host header. It was handled by the default catch-all server, which returns 404. 請求已到達此 nginx 執行個體,但沒有 server 區塊符合請求的 Host 標頭,因而由預設 catch-all 伺服器處理,回應 404。

For operators維運人員參考
  • Confirm DNS for this host points at the intended upstream, not this default server.確認此主機的 DNS 指向正確的上游,而非此預設伺服器。
  • Add a server with a hostname that matches this host in the nginx GUI, then apply the configuration.在 nginx GUI 中新增一個主機名稱符合此主機的伺服器,然後套用設定。
  • Or set default_server intentionally if this catch-all response is expected.或若此 catch-all 回應為預期行為,請明確設定 default_server。