403 Seção ninjx cakephp admin proibida

0

Eu tenho o nginx instalado no ubuntu com o cakephp instalado no vhost. O site está funcionando bem, mas ocorreu um erro 403 Proibido ao tentar acessar a seção domain.com/admin.

Arquivo de configuração do Nginx: -

server {
    listen   80;
    #listen   [::]:80;

    root /var/www/downloads.studyiq.com/html/webroot;
    index index.php index.html;

    server_name downloads.studyiq.com;

    #location / {
    #       try_files $uri $uri/ /index.php?$args;
    #}

    location /webroot/admin/ {
            rewrite ^(/.*)$ /var/www/downloads.stuqyiq.com/html/webroot/$1 break;
            try_files $uri $uri/ /var/www/downloads.studyiq.com/html/webroot/index.php?$args;
    }


    location ~ \.php$ {
            try_files $uri =404;
            include fastcgi_params;
            fastcgi_pass unix:/run/php/php7.0-fpm.sock;
            #fastcgi_pass 127.0.0.1:9000;
            fastcgi_index index.php;
            fastcgi_intercept_errors on;
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
     }

    location ~ /\. {
       deny all;
     }
    
por gurupal singh 07.09.2018 / 11:05

0 respostas

Tags