oupula/ngx_image_thumb

访问 404 是啥原因? config 有问题吗? 版本号 nginx-1.12

Closed this issue · 2 comments

zanjs commented
server
    {
        listen 80 default_server;
        #listen [::]:80 default_server ipv6only=on;
        server_name _;
        index index.html index.htm index.php;
        root  /home/wwwroot/default;

        #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 / {
		   
		   image on;
		   image_output on;
	}

        location /nginx_status
        {
            stub_status on;
            access_log   off;
        }

        

        location ~ .*\.(js|css)?$
        {
            expires      12h;
        }

        location ~ /.well-known {
            allow all;
        }

        location ~ /\.
        {
            deny all;
        }

        access_log  /home/wwwlogs/access.log;
    }
}

您解决了么,我也是404

image_output on 需要nginx的启动用户有文件夹写入权限,检查图片目录nginx是否有权限写入