server {
	listen 80 default_server;
	listen [::]:80 default_server;

	root /opt/app/web;

	index index.php;

	server_name _;

	client_max_body_size <%= @maxUploadSize%>M;

	location / {
		# First attempt to serve request as file, then
		# as directory, then fall back to displaying a 404.
		try_files $uri /app.php$is_args$args;
	}

	# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
	location ~ \.php$ {
		include snippets/fastcgi-php.conf;
		fastcgi_pass unix:/var/run/php7-fpm.sock;
		fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param PATH_INFO $fastcgi_script_name;
        fastcgi_param HTTPS off;
		fastcgi_split_path_info ^(.+\.php)(/.*)$;
	}
}
server {
	listen 80 default_server;
	listen [::]:80 default_server;

	root /opt/app/web;

	index index.php;

	server_name _;

	client_max_body_size <%= @maxUploadSize%>M;

	location / {
		# First attempt to serve request as file, then
		# as directory, then fall back to displaying a 404.
		try_files $uri /index.php$is_args$args;
	}

	# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
	location ~ \.php$ {
		include snippets/fastcgi-php.conf;
		fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
		fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param PATH_INFO $fastcgi_script_name;
        fastcgi_param HTTPS off;
		fastcgi_split_path_info ^(.+\.php)(/.*)$;
	}
}
Fix socket and use index.php
Fix socket and use index.php
