I can not reinstall wordpress

0

I have a vhost nginx server called site-responsivo.test below the

server {
    listen 80;
    server_name site-responsivo.test;
    root /home/rafaelejosi/www/projetos/site-responsivo.test/; 

    index index.html index.htm index.php;

    charset utf-8;

    location / {
       try_files $uri $uri/ /index.php?$query_string;
    }
    #Este fuciona no link http://site-responsivo.test/wordpress/
    location /wordpress {
        index index.php index.html index.htm index.nginx-debian.html;
        try_files $uri $uri/ /index.php?$query_string;
    }

    #O site original esta quebrado com erro no nginx 403 Forbidden http://site-responsivo.test/

    location /php {
        index index.php index.html index.htm index.nginx-debian.html;
        try_files $uri $uri/ /index.php?$query_string;
    }

    location = /favicon.ico { access_log off; log_not_found off; }
    location = /robots.txt  { access_log off; log_not_found off; }

    access_log on;
    error_log  /var/log/nginx/site-responsivo.test-error.log error ;
    rewrite_log on;

    error_page 404 /index.php;

    sendfile off;

    location ~ \.php$ {
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        fastcgi_pass unix:/run/php/php7.0-fpm.sock;
        fastcgi_index index.php;
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_intercept_errors off;
        fastcgi_buffer_size 16k;
        fastcgi_buffers 4 16k;
    }

    location ~ /\.ht {
        deny all;
    }
}

Knowing that the directory structure is this

What is the right way to configure this vhost for both to work?

    
asked by anonymous 19.04.2018 / 01:24

0 answers