1. 首页
  2. >
  3. 技术专题
  4. >
  5. Laravel

PHP Nginx Larveral配置

1:看情况是否需要安装compoer工具
安装compoer.note

2:在conf文件中添加重定向

rewrite ^/public/index.php/(.*)$ /public/index.php?s=$1 last;
location /{
try_files $uri $uri/ /public/index.php$is_args$query_string;
}