server {
	listen 80 default_server;

	root /opt/Eye/html;

	index index.html index.php;

	server_name _;

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

	error_page 404 302 301  /public/blocked.php;

	location ~ \.php$ {
		include snippets/fastcgi-php.conf;
#		fastcgi_pass unix:/run/php/php8.2-fpm.sock;
		fastcgi_pass 127.0.0.1:9002;
	}

	location ~ /cfg {
		deny all;
	}

	location ~ /inc {
		deny all;
	}

	location ~ /log {
		deny all;
	}

	location ~ /tmp {
		deny all;
	}

	location ~ /sessions {
		deny all;
	}

	# deny access to .htaccess files, if Apache's document root
	# concurs with nginx's one
	location ~ /\.ht {
		deny all;
	}
}
