20 lines
440 B
Plaintext
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;
|
|
}
|
|
}
|