Docker/nginx/default.conf
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;
}
}