子文件夹上的nginx访问被拒绝

时间:2018-01-21 14:50:31

标签: php nginx phpmyadmin webserver

location /phpmyadmin/ {
    allow all;
    root /opt/data;
    fastcgi_pass unix:/var/run/php5-fpm.sock;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    include fastcgi_params;
    fastcgi_param   PATH_INFO         $fastcgi_path_info;
    fastcgi_param   SCRIPT_FILENAME   $document_root$fastcgi_script_name;
}

这是我的配置ngnix for phpmyadmin,它正在工作,但带有图像的子文件夹是“访问被拒绝”,我试图将其设置为chmod 777,但它没有帮助,任何提示,请? / p>

0 个答案:

没有答案