Home Laravel addition to normal visit, other pages are 404

After the pagoda on the system configuration through a key source laravel framework, we found that apart from Home can be accessed, the other 404 pages are returned after the online information than has been found to be nginx configuration file out of the question

1. Locate the configuration file

  Pagoda system address: / www / server / panel / vhost / nginx

2. Add the following in the .conf file new website

  location / 

  {
    Try_files $ on $ a / /index.php?$query_string;
  }

3. Restart nginx

Guess you like

Origin www.cnblogs.com/venom95/p/11115121.html