title: Cakephp 3 NGINX URL rewriting issue
body: <p>I am trying to setup CakePHP 3 on Linux server CentOS 7 OS. I have created a project using composer and everything installs correctly with proper permissions. In my virtual host file I have configured config file according to <a href="http://book.cakephp.org/3.0/en/installation.html#nginx" rel="nofollow">official document</a></p>
  
  <pre><code>server {
        listen      80;
        server_name remote.inodd.com;
        ## redirect http to https ##
        rewrite 301 https://$server_name$request_uri permanent;
        #rewrite  301 https://$server_name$request_uri permanent;
  }
  
  server {
  #    listen       80;
      listen       443 ssl;
      server_name  remote.inodd.com;
      ssl_certificate /home/vhost/www/domain/ssl/self-ssl.crt;
      ssl_certificate_key /home/vhost/www/domain/ssl/self-ssl.key;
  
      # note that these lines are originally from the "location /" block
      root   /home/vhost/www/domain/public_html;
      index index.php;
      access_log /home/vhost/www/domain/logs/access_log;
      error_log /home/vhost/www/domain/logs/error_log;
  
      location / {
          #try_files $uri $uri/ =404;
          try_files $uri $uri/ /index.php?url=$request_uri;
      }
      error_page 404 /404.html;
      error_page 500 502 503 504 /50x.html;
      location = /50x.html {
          root /usr/share/nginx/html;
      }
  
      location ~ \.php$ {
          try_files $uri =404;
          fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
          fastcgi_index index.php;
          fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
          include fastcgi_params;
      }
  }
  </code></pre>
  
  <p>so when I browse the url <a href="https://remote.inodd.com/development/" rel="nofollow">https://remote.inodd.com/development/</a>, I get default landing page showing status of cakephp configuration. Everything checks out normal even database connectivity. But I get below warning that rewriting is not configured correctly.</p>
  
  <p>URL rewriting is not properly configured on your server.</p>
  
  <p>1) Help me configure it</p>
  
  <p>2) I don't / can't use URL rewriting</p>
  
  <p>Not sure what else I am missing here as I am able to setup non-cakephp sites and they are working fine.</p>