When tp5.0 met nginx

Is the need to change the configuration file.

Official website clearly informed.

However, if the configuration of the site domain name, be sure to change the contents inside vhost.conf

Add the location of your site's domain name corresponding to the inside

  LOCATION / { // ... .. omit part of the code 
   IF (-e! $ request_filename ) { 
   the rewrite   ^ $ /index.php?s=/$1 (*.)   Last;
    BREAK ; 
    } 
 }

So add it.

If black and white, open php-ini inside display_errors, not being given anything

Do not ask

Ask is that you may not return view (/ laugh cry, I just looked for a long time and because of this open_basedir

 

Guess you like

Origin www.cnblogs.com/gushengyan/p/11220870.html