larvel nginx 配置
配置完nginx.conf后,访问llocalshost:8080,正常。但是点击login/register 会出现404错误。
网上找了一下,
要在配置nginx.conf的时候,加上
location / { try_files $uri $uri/ /index.php?$query_string; }
将larvel的请求指向index.php
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。