NGINX does not access folder index.php

0

Hello, I'm trying to use NGINX with Docker, but when installing it is not accessing the index.php of the folders, only from the root, I'm posting the configuration file below, can you help me find out where I'm going wrong?

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

    # this path MUST be exactly as docker-compose.fpm.volumes,
    # even if it doesn't exists in this dock.
    #root /usr/share/nginx/html;
    index index.php index.html index.html;

    server_name 192.168.99.100;

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

    location ~ \.php$ {
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        fastcgi_pass phpfpm:9000; 
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include fastcgi_params;
    }
}
    
asked by anonymous 06.08.2018 / 12:53

0 answers