# Include inside the existing development server {} block, before reloading OpenResty.
location = /php85/navnath/api_new.rebates.com/html/public {
    return 301 /php85/navnath/api_new.rebates.com/html/public/;
}

location ^~ /php85/navnath/api_new.rebates.com/html/ {
    return 404;
}

location ^~ /php85/navnath/api_new.rebates.com/html/public/ {
    root /var/www;
    index index.php;
    try_files $uri $uri/ /php85/navnath/api_new.rebates.com/html/public/index.php$is_args$args;

    location ~ /\. {
        deny all;
    }

    location ~ \.php(?:/|$) {
        rewrite ^ /php85/navnath/api_new.rebates.com/html/public/index.php last;
    }
}

location = /php85/navnath/api_new.rebates.com/html/public/index.php {
    include fastcgi_params;
    fastcgi_pass unix:/run/php/php8.5-fpm.sock;
    fastcgi_param SCRIPT_FILENAME /var/www/php85/navnath/api_new.rebates.com/html/public/index.php;
    fastcgi_param SCRIPT_NAME /php85/navnath/api_new.rebates.com/html/public/index.php;
}
