1. 程式人生 > >Nginx配置 Laravel 正常訪問

Nginx配置 Laravel 正常訪問

在nginx.conf 裡對應的server{}中配置如下程式碼

location / {

            index index.php index.html index.htm;
            try_files $uri $uri/ /index.php?$query_string;

}

然後 重啟 systemctl restart nginx即可