我刚刚安装并推送了代码服务器。当我尝试访问其他页面时,出现了如下 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;
}
}
我已经尝试了所有可能的解决方案。但我仍然收到错误。有人能帮我吗?