![nginx(2:没有该文件或目录)-ubuntu 服务器上的 laravel](https://linux22.com/image/1152600/nginx%EF%BC%882%EF%BC%9A%E6%B2%A1%E6%9C%89%E8%AF%A5%E6%96%87%E4%BB%B6%E6%88%96%E7%9B%AE%E5%BD%95%EF%BC%89-ubuntu%20%E6%9C%8D%E5%8A%A1%E5%99%A8%E4%B8%8A%E7%9A%84%20laravel.png)
我刚刚安装并推送了代码服务器。当我尝试访问其他页面时,出现了如下 nginx 错误
*1 open() "/var/www/html/domain/public/admin" 失败 (2: 没有此文件或目录),
服务器代码块是:
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html/domain/public;
index index.php index.html index.htm index.nginx-debian.html;
server_name domain.com;
location /phpmyadmin/ {
try_files $uri =404;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
# With php7.0-cgi alone:
#fastcgi_pass 127.0.0.1:9000;
# With php7.0-fpm:
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
include fastcgi_params;
}
location ~ /\.ht {
deny all;
}
}
我已经尝试了所有可能的解决方案。但我仍然收到错误。有人能帮我吗?