Add configuration to proxy requests

Hi,

How can I add configuration to proxy requests ?

For instance I want this redirection :

location /api/ {
proxy_pass https://mydomain.fr/wp-json/salon/api/v1/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}

In Nginx server without Hestia I know how to proceed but how to do the proxy request for a specific website on Hestia ?

Thanks in advance

You can create your own templates and assign that to a specific website, please see the documentation Web Templates and FastCGI/Proxy Cache | Hestia Control Panel

Thanks @maurice
I’ve added the templates:

it looks lite this :

Then I choose it under the right website :

However it still not work.

For info the same redirection under cloud panel server worked.

Check (error-) logfile, if you need more info you can enable nginx debug logfile.