Hello,
I am using multiple nginx server blocks…
Here is my nignx config for example.com
server {
listen 80;
listen 443 ssl http2;
ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;
root /var/www/example.com/public;
server_name example.com;
}
This works without https however if i add default to following…
listen 443 default ssl http2
it works.
But i can’t have default tag on all server blocks for multiple domains. Why is this is happening? Am i missing something or any suggestion to fix this?
Thanks