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