server { listen 80; index index.php; root /var/www/tasks/site; location / { try_files $uri /index.php$request_uri; } location /index.php/ { fastcgi_pass application:9000; fastcgi_split_path_info ^(.+?\.php)(/.*)$; include fastcgi_params; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param SCRIPT_NAME "/index.php"; fastcgi_param SCRIPT_FILENAME $document_root/index.php; } }