我在 ubuntu 18.04 上运行 nginx/1.14.0,我的目录一直出现 403 错误。
站点配置
server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html;
index index.html .css .png .jpg .php .swf .js;
server_name fantage.info;
location /media {
autoindex on;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
}