daveearley/Email-Validation-Tool

View on GitHub
Docker/nginx/default.conf

Summary

Maintainability
Test Coverage
server {
    listen 80;
    index index.php index.html;
    root /www;

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

    location ~ \.php$ {
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        fastcgi_pass php:9000;
        fastcgi_index index.php;
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME /web/$fastcgi_script_name;
        fastcgi_param PATH_INFO $fastcgi_path_info;
    }
}