title: Deploy express API on EC2 - ERR_SSL_PROTOCOL_ERROR
body: <p>I'm trying to deploy my Express API in my EC2. But I keep getting this error &quot;ERR_SSL_PROTOCOL_ERROR&quot; and despite my researches, I cannot find the right thing to do to fix my error.</p>
  <p>My front end is on apache and requesting information through PUT/GET request toward the API. I've open the port on AWS and updated default-ssl.conf apache's file :</p>
  <pre><code>const express = require('express')
  const axios = require('axios');
  var cors = require('cors')
  const app = express();
  const fs = require('fs');
  const bodyParser = require('body-parser');
  const util = require('util');
  const exec = util.promisify(require('child_process').exec);
  const execSync = require('child_process').execSync;
  
  app.use(cors())// Authorize navigator calls 
  app.use(bodyParser.urlencoded({ extended: true }));
  
  // We send the rarity table
  app.get(&quot;/rarity&quot;, async (req, res) =&gt; {
      try {
          let nft_json = JSON.parse(fs.readFileSync('rarity.json', 'utf-8'));
          // We gather the information regarding this NFT to mint it
          console.log(nft_json);
          res.send(nft_json);
      }
      catch (err) {
          console.log(&quot;error rarity table&quot;)
      }
  })
  
  app.listen(8080, () =&gt; {
      console.log(&quot;Serveur à l'écoute&quot;)
  })
  </code></pre>
  <pre><code>ServerName www.xx.com
  SSLEngine on
  
  ProxyPass /rarity https://www.xx.com:8080
  ProxyPassReverse /rarity https://www.xx.com:8080
  </code></pre>
  <p>I can access the express /rarity through http but not https. What am I doing wrong in my default-ssl.conf ?</p>
  <p>Have a great day,
  regards</p>