iteo/docker/nginx/default.conf
2024-04-14 15:47:41 +02:00

20 lines
440 B
Plaintext

server {
root /var/www/public;
index index.php;
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ (.+).php(/|$) {
fastcgi_pass symfony:9000;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /var/www/public/$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT /var/www/public;
internal;
}
}