在在线主机中将 NGINX 重写为 Laravel 5

Rewrite of NGINX to Laravel 5 in an online host

我想知道在线主机中 Nginx 服务器的配置文件的路径,以便从 URL.

中删除 index.php

例如 http://site/public/index.php/more 应转换为 http://site/more

在 Nginx 上,站点配置中的以下指令将允许 "pretty" 个 URL:

location / {
    try_files $uri $uri/ /index.php?$query_string;
}

http://laravel.com/docs/5.0/installation#pretty-urls