omotam img

Skip to main content
  1. Posts/

Default Server Settings for Nginx

··32 words·1 min·
Table of Contents

Config #

server {

    listen [::]:443 ssl http2;
    listen 443 ssl http2;

    server_name _;

    ssl_reject_handshake on;
}

server {

    listen 80;
    listen [::]:80;

    server_name _;

    return 444;
}

Reload nginx:

systemctl reload nginx.service