title: Laravel Echo Server: "Error sending authentication request" on production using HTTPS (Private/Presence channel subscription_error)
body: <p>I created realtime chat app using: Laravel 5.8, Laravel Echo, Redis, Socket.io and Vue.js. </p>
  
  <p>It works fine on my local machine(localhost). But when I tried to move the app to production server(which has https) - it stopped working and it shows me the next error in laravel-echo-server.log file:</p>
  
  <p><img src="https://i.stack.imgur.com/Ihhba.jpg" alt="laravel-echo-server.log error"></p>
  
  <p>Also I've changed <strong>laravel-echo-server.json</strong>(echo server config file) like so: </p>
  
  <p><img src="https://i.stack.imgur.com/3rM5K.jpg" alt="laravel-echo-server.json content"></p>
  
  <p>Also you can see how <strong>window.Echo config</strong> looks like(in app.js): </p>
  
  <pre><code>import Echo from 'laravel-echo'
  window.io = require('socket.io-client');
  
  window.Echo = new Echo({
      broadcaster: 'socket.io',
      host: window.location.hostname + ':6001'
  });
  </code></pre>
  
  <p><strong>May be I have some bugs in the configs which mentioned above?</strong> </p>
  
  <p>Also, I think it must be helpful, check the screenshot below what I have noticed in one of client's requests: </p>
  
  <p><img src="https://i.stack.imgur.com/i6wxI.jpg" alt="client&#39;s request error"></p>
  
  <p>I tried to find more information about the error and why it could appear but no results. Exactly I checked laravel log file - it was empty, and nginx error.log file which was empty too, the only place where I saw error it's laravel-echo-server.log file(I shoved its content above)</p>
  
  <p>for additional information you can check what settings I'm using for redis server in my .env file <em>(I cleared cache when changed .env)</em>: </p>
  
  <pre><code>...
  
  REDIS_HOST=127.0.0.1
  REDIS_PASSWORD=null
  REDIS_PORT=6379
  
  ...
  </code></pre>
  
  <p>Also, that's what I have in my config/database.php file: </p>
  
  <pre><code>...
  
  'redis' =&gt; [
  
      'client' =&gt; env('REDIS_CLIENT', 'predis'),
  
      'options' =&gt; [
          'cluster' =&gt; env('REDIS_CLUSTER', 'predis'),
      ],
  
      'default' =&gt; [
          'host' =&gt; env('REDIS_HOST', '127.0.0.1'),
          'password' =&gt; env('REDIS_PASSWORD', null),
          'port' =&gt; env('REDIS_PORT', 6379),
          'database' =&gt; env('REDIS_DB', 0),
      ],
  
      'cache' =&gt; [
          'host' =&gt; env('REDIS_HOST', '127.0.0.1'),
          'password' =&gt; env('REDIS_PASSWORD', null),
          'port' =&gt; env('REDIS_PORT', 6379),
          'database' =&gt; env('REDIS_CACHE_DB', 1),
      ],
  
  ],
  
  ...
  </code></pre>
  
  <p>Thank you guys so much for any help, I have been struggling with that problem for the last few days and I can't figure it out, so I will be gratefull for any tips! </p>