server { listen 0.0.0.0:80 default_server; listen [::]:80 default_server; server_name domaine.com www.domaine.com; return 301 https://$server_name$request_uri; } server { listen 443 ssl default_server; listen [::]:443 ssl default_server; include snippets/ssl-domaine.com.conf; include snippets/ssl-params.conf; root /var/www/domaine.com; }