title: no "ssl_certificate" is defined for the "listen ... ssl" directive
body: <p>I am trying to configure nginx server for my website. I am using the following code to configure my server. It works if I add default_server for my www.fastenglishacademy.fr (443) server block.</p>
  
  <p>But in that case, All my subdomains also brings the content of www.fastenglishacademy.fr</p>
  
  <p>And if I remove the default_server, I get the following error:</p>
  
  <pre><code>nginx: [emerg] no "ssl_certificate" is defined for the "listen ... ssl" directive in /etc/nginx/sites-enabled/fastenglishacademy.fr.conf:14
  nginx: configuration file /etc/nginx/nginx.conf test failed
  </code></pre>
  
  <p>My nginx configuration codes:</p>
  
  <pre><code>server {
          listen 80;
          listen [::]:80;
          server_name fastenglishacademy.fr;
          return 301 https://www.fastenglishacademy.fr$request_uri;
  }
  server {
          listen 80;
          listen [::]:80;
          server_name www.fastenglishacademy.fr;
          return 301 https://www.fastenglishacademy.fr$request_uri;
  }
  
  server {
          listen 443 ssl http2;
          listen [::]:443 ssl http2;
          server_name fastenglishacademy.fr;
          return 301 https://www.fastenglishacademy.fr$request_uri;
  }
  
  server {
          listen 443 ssl http2;
          listen [::]:443 ssl http2;
          root /media/fea/www/fastenglishacademy.com;
          index index.html index.htm index.nginx-debian.html;
          server_name www.fastenglishacademy.fr;
          location / {
              etag on;
              try_files $uri$args $uri$args/ /index.html;
          }
  
          location ~* \.(jpg|jpeg|png|gif|ico|ttf|woff2|woff|svg)$ {
                  expires 365d;
          }
          location ~* \.(css|js)$ {
                  expires 30d;
          }
  
          location ~*  \.(pdf)$ {
                  expires 15d;
          }
          #WARNING: Please read before adding the lines below!
          add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
          add_header X-Frame-Options DENY;
          add_header X-Content-Type-Options nosniff;
  
          # SSL Certificates
          ssl_certificate /path/to/fullchain.pem;
          ssl_certificate_key /path/to/privkey.pem;
          ssl_trusted_certificate /path/to/chain.pem;
  }
  </code></pre>
  
  <p>My links:</p>
  
  <p><a href="https://www.fastenglishacademy.fr/" rel="noreferrer">https://www.fastenglishacademy.fr/</a></p>
  
  <p><a href="https://api.fastenglishacademy.fr/" rel="noreferrer">https://api.fastenglishacademy.fr/</a></p>