Laravel Nova 403 错误! 本地环境 Mamp 已经解决了
已经解决方式
在Mamp 选中public 目录
在自定义添加一个 静态
请问一下 有谁知道解决 Laravel nova 403错误不??
电脑是:Macbook Pro
系统:macOS Mojave
本地环境是用:Mamp Pro
PHP:7.2.20
Msyql: 5.7.26
nginx
首页是可以正常访问的比如:http://www.victor.com/ 可以正常显示Laravel字样 如图
但是访问 http://www.victor.com/nova/ 后台的时候就出现 403错误
访问http://www.victor.com/nova/login/
我看了一下 css js 都直接访问 vendor 里面的 nova/css
安装是通过这篇文章 博客:Laravel Nova 入门创建一个简单的博客 进行安装的,
同时也寻找过百度google 都没找到答案 希望好心人帮忙一下 谢谢
以下是nginx的conf文件
server {
listen 80;
server_name localhost;
root /Applications/MAMP/htdocs/victor;
index index.html index.htm index.php;
charset utf-8;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass unix:/Applications/MAMP/Library/logs/fastcgi/nginxFastCGI_php7.2.20.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /Applications/MAMP/conf/nginx/fastcgi_params;
}
location ~ /\.(?!well-known).* {
deny all;
}
}
推荐文章: