server {
listen 80;
server_name zetamatic.developernoob.com;
root /var/www/html;

location / {
if ($arg_edd_action = "activate_license") {
rewrite ^(.*)$ /zetamatic.php;
}

try_files $uri $uri/ /index.php?$args;
}

location ~ \.php$ {
include fastcgi_params;
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/run/php/php8.3-fpm.sock; # Make sure the path to the socket is correct
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
#include fastcgi_params;
}
}

file path