Created
July 21, 2025 02:28
-
-
Save ThinaticSystem/42a76a2f0910c477bfa944e5ef937286 to your computer and use it in GitHub Desktop.
未定義ホストへのリクエストを切断するNginx設定
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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