Closed jpmckinney closed 7 months ago
i.e. display the styled 404 page, with a TLS certificate for the FQDN and an HTTPS redirect for the default (IP).
The default /etc/nginx/sites-available/default is (excluding comments):
/etc/nginx/sites-available/default
server { listen 80 default_server; listen [::]:80 default_server; root /var/www/html; index index.html index.htm index.nginx-debian.html; server_name _; location / { try_files $uri $uri/ =404; } }
i.e. display the styled 404 page, with a TLS certificate for the FQDN and an HTTPS redirect for the default (IP).
The default
/etc/nginx/sites-available/default
is (excluding comments):