псевдоним nginx php 403 - PullRequest
       21

псевдоним nginx php 403

0 голосов
/ 16 ноября 2018

Мой webroot - / web / zjz, я хочу использовать http://new.ahsl.gov.cn/zjz/ для просмотра, но ответы 403, я не знаю, где ошибка, пожалуйста, помогите мне, спасибо Конфигурация nginx:

server {
    listen       80;
    server_name  new.ahsl.gov.cn www.ahsl.gov.cn;

    access_log  /var/log/nginx/www.test.gov.cn_access.log  main;
    root   /web/master;

    location ^~ /zjz/ {
        alias /web/zjz;

        location ~ \.php$ {
                fastcgi_pass   127.0.0.1:9000;
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME  /web/zjz/$fastcgi_script_name;
                include        fastcgi_params;
            }
    }

    location / {
        index  index.html index.htm index.php;
    include /web/master/.htaccess;
    }

    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   /usr/share/nginx/html;
    }

    location ~ \.php$ {
        fastcgi_pass   127.0.0.1:9000;
        fastcgi_index  index.php;
        fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
        include        fastcgi_params;
    }

    location ~ \.(jpg|png|gif)$ {
        expires 1h;
        gzip on;
    }
}
...