I want my server to only respond to https requests and my SSL configuration is working fine. My question is about how best to disable http...
Is it better to have a default server block that listens to port 80 and returns a 444 (see below), or to just remove all port 80 server blocks altogether? I would assume that the latter is better because it would result in the server doing the minimum amount of processing, but I can't find anything about this online, so perhaps I'm missing something?
server {
listen 80 default_server;
return 444;
}