上线了项目之后,报这个错;
已经配置了storage和bootstrap文件夹的权限;
这个是.env的配置文件,应该也没有什么问题;
这个是nginx的二级域名的配置文件,截图截不全,就直接贴代码了;
server
{
listen 80;
#listen [::]:80 default_server ipv6only=on;
server_name laravel.killlol.com;
index index.html index.htm index.php;
root /home/wwwroot/default/laravel/public;
#error_page 404 /404.html;
# Deny access to PHP files in specific directory
#location ~ /(wp-content|uploads|wp-includes|images)/.*\.php$ { deny all; }
# include enable-php.conf;
location /nginx_status
{
stub_status on;
access_log off;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
location ~ /.well-known {
allow all;
}
location ~ /\.
{
deny all;
}
location /'
{
try_files $uri $uri/ /index.php?$query_string;
}
try_files $uri $uri/ @rewrite;
location @rewrite {
rewrite ^/(.*)$ /index.php?_url=/$1;
}
access_log /home/wwwlogs/access.log;
}
这个是我namesilo上的解析地址;
我觉得是Nginx的解析有问题,因为跑了几次,Nginx的日志文件都没有相应的记录,是这个问题吗?求助;
ps:
nginx的配置文件如下;
把.env里的APP_URL的内容删掉了,但是还是不行;
最新进展
应该是Nginx配置的问题,但是我这个Nginx配置,之前在阿里云也上线过几个Laravel的项目,现在在用vultr的VPS,但是这个为什么不行了呢?求助;
server
{
listen 80;
#listen [::]:80 default_server ipv6only=on;
server_name zhihu.jeffcottlu.com;
index index.html index.htm index.php;
root /home/wwwroot/default/laravel_zhihu/public;
#error_page 404 /404.html;
# Deny access to PHP files in specific directory
#location ~ /(wp-content|uploads|wp-includes|images)/.*\.php$ { deny all; }
# include enable-php.conf;
location /nginx_status
{
stub_status on;
access_log off;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
location ~ /.well-known {
allow all;
}
location ~ /\.
{
deny all;
}
location /
{
try_files $uri $uri/ /index.php?$query_string;
}
try_files $uri $uri/ @rewrite;
location @rewrite {
rewrite ^/(.*)$ /index.php?_url=/$1;
}
access_log /home/wwwlogs/access.log;
}
- 6 回答
- 0 关注
- 1448 浏览
添加回答
举报
0/150
提交
取消