Reverse proxy and port redirection

You can create a new template in /usr/local/hestia/data/templates/web/nginx/

You will see
https://github.com/hestiacp/hestiacp/blob/master/install/deb/templates/web/nginx/default.tpl

and default.stpl

cp default.tpl new_name.tpl

repeat the same for *.stpl

Then you can modify your tpl files

location / {
    proxy_pass      http://%ip%:4432;
    location ~* ^.+\.(%proxy_extentions%)$ {
        root           %docroot%;
        access_log     /var/log/%web_system%/domains/%domain%.log combined;
        access_log     /var/log/%web_system%/domains/%domain%.bytes bytes;
        expires        max;
        try_files      $uri @fallback;
    }
}

If you have NGiNX + PHP-FPM but no Apache2 installed the files are located in the php-fpm folder

/usr/local/hestia/data/templates/web/nginx/php-fpm

2 Likes