title: Laravel routes not found on nginx
body: <p>when I try to access my test app, just the index route works:
  <a href="http://malte.italoborg.es" rel="nofollow noreferrer">malte.italoborg.es</a></p>
  
  <p>If I try to access another route, like:
  <a href="http://malte.italoborg.es/admin" rel="nofollow noreferrer">malte.italoborg.es/admin</a></p>
  
  <p>I got 404 error.</p>
  
  <p>My nginx app file:</p>
  
  <pre><code>server {
      listen 80;
      server_name malte.italoborg.es;
      root /home/italo/www/malte.italoborg.es/public;
  
      charset utf-8;
  
      location = /favicon.ico { access_log off; log_not_found off; }
      location = /robots.txt  { access_log off; log_not_found off; }
  
      access_log off;
      error_log  /home/log/nginx/malte.italoborg.es-error.log error;
      error_page 404 /index.php;
      sendfile off;
  
      # Point index to the Laravel front controller.
      index index.php;
  
      location / {
              try_files $uri $uri/ /index.php;
      }
  
      location ~ \.php$ {
          try_files $uri /index.php =404;
          fastcgi_split_path_info ^(.+\.php)(/.+)$;
          fastcgi_pass unix:/var/run/php5-fpm.sock;
          fastcgi_index index.php;
          fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
          include fastcgi_params;
      }
  
      location ~ /\.ht {
          #deny all;
      }
  }
  </code></pre>
  
  <p>I tried this solution in an another link in StackOverflow, but doesn't worked for me.</p>
  
  <p><a href="https://stackoverflow.com/questions/23097058/all-laravel-routes-not-found-on-nginx">All Laravel routes “not found” on nginx</a></p>
  
  <p>I'm using nginx in Digital Ocean.</p>
  
  <p>::UPDATE::</p>
  
  <p>My routes.php</p>
  
  <pre><code>&lt;?php
  
  /*
  |--------------------------------------------------------------------------
  | Application Routes
  |--------------------------------------------------------------------------
  |
  | Here is where you can register all of the routes for an application.
  | It's a breeze. Simply tell Laravel the URIs it should respond to
  | and give it the controller to call when that URI is requested.
  |
  */
  
  Route::get('/',
      ['as' =&gt; 'site.welcome.index', 'uses' =&gt; 'Site\WelcomeController@index']
  );
  
  Route::group(['prefix' =&gt; 'admin'], function () {
  
      // Login
      Route::get('login',
          ['as' =&gt; 'admin.auth.login', 'uses' =&gt; 'Admin\Auth\AuthController@getLogin']
      );
      Route::post('login',
          ['as' =&gt; 'admin.auth.login', 'uses' =&gt; 'Admin\Auth\AuthController@postLogin']
      );
      Route::get('logout',
          ['as' =&gt; 'admin.auth.logout', 'uses' =&gt; 'Admin\Auth\AuthController@getLogout']
      );
  
      // Password
      Route::get('password/email',
          ['as' =&gt; 'admin.password.email', 'uses' =&gt; 'Admin\Auth\PasswordController@getEmail']
      );
      Route::post('password/email',
          ['as' =&gt; 'admin.password.email', 'uses' =&gt; 'Admin\Auth\PasswordController@postEmail']
      );
  
      // Password reset
      Route::get('password/reset/{token}',
          ['as' =&gt; 'admin.password.reset', 'uses' =&gt; 'Admin\Auth\PasswordController@getReset']
      );
      Route::post('password/reset',
          ['as' =&gt; 'admin.password.reset', 'uses' =&gt; 'Admin\Auth\PasswordController@postReset']
      );
  
      Route::group(['middleware' =&gt; 'auth'], function () {
  
          // Home
          Route::get('/', ['as' =&gt; 'admin.home.index', 'uses' =&gt; 'Admin\HomeController@index']);
  
          // My Account
          Route::get('profile',
              ['as' =&gt; 'admin.profile.edit', 'uses' =&gt; 'Admin\ProfileController@edit']
          );
  
          Route::put('profile',
              ['as' =&gt; 'admin.profile.update', 'uses' =&gt; 'Admin\ProfileController@update']
          );
  
          // Nail polish
          Route::resource('polishes', 'Admin\NailPolishController');
  
          // Brands
          Route::resource('brands', 'Admin\BrandController');
  
          // Types
          Route::resource('types', 'Admin\TypeController');
      });
  });
  </code></pre>