title: NGINX: mywebsite.com is currently unable to handle this request. HTTP ERROR 500
body: <p>Okay, so I get mywebsite.com is currently unable to handle this request.
  HTTP ERROR 500
  /etc/nginx/sites-available/default:</p>
  
  <pre><code>server {
      listen 80;
      server_name mywebsite.com;
  
      root /home/www/tradescript/public;
      index index.php index.html index.htm;
  
      location / {
              try_files $uri $uri/ /index.php?$query_string;
      }
      location ~ \.php$ {
              try_files $uri /index.php =404;
              fastcgi_split_path_info ^(.+\.php)(/.+)$;
  
              fastcgi_connect_timeout 60;
              fastcgi_send_timeout 180;
              fastcgi_read_timeout 180;
              fastcgi_buffer_size 128k;
              fastcgi_buffers 256 16k;
              fastcgi_busy_buffers_size 256k;
              fastcgi_temp_file_write_size 256k;
              fastcgi_max_temp_file_size 0;
  
              fastcgi_pass unix:/var/run/php5-fpm.sock;
              #fastcgi_read_timeout 200;
              fastcgi_index index.php;
              fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
              include fastcgi_params;
      }
  }
  </code></pre>
  
  <p>Inside of public folder there is my index.php:</p>
  
  <pre><code>&lt;?php
  
  require __DIR__.'/../bootstrap/autoload.php';
  
  $app = require_once __DIR__.'/../bootstrap/app.php';
  
  $kernel = $app-&gt;make(Illuminate\Contracts\Http\Kernel::class);
  
  $response = $kernel-&gt;handle(
      $request = Illuminate\Http\Request::capture()
  );
  
  $response-&gt;send();
  
  $kernel-&gt;terminate($request, $response);
  </code></pre>
  
  <p>I'm kinda newbie at this (nginx, laravel) and maybe you see some mistakes that I'm trying to find like 5 hours or so :D</p>