Skip to content

Instantly share code, notes, and snippets.

@ThinaticSystem
Created July 21, 2025 02:28
Show Gist options
  • Select an option

  • Save ThinaticSystem/42a76a2f0910c477bfa944e5ef937286 to your computer and use it in GitHub Desktop.

Select an option

Save ThinaticSystem/42a76a2f0910c477bfa944e5ef937286 to your computer and use it in GitHub Desktop.
未定義ホストへのリクエストを切断するNginx設定
server {
listen 80 default_server;
listen [::]:80 default_server;
listen 443 default_server;
listen [::]:443 default_server;
server_name _;
# Reject SSL handshake on port 443
ssl_reject_handshake on;
# Disconnect on port 80
return 444;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment