Redirect /webmail to webmail.domain

Hello Everyone,

Yesterday I have migrated an account from cPanel, today the user contacted me about not being able to login to /webmail, after checking I saw that the default url for Hestia is webmail.domain.com so I made a quick change to the nginx template for this edit,

1- First you need to make a copy for the following files

cp default.stpl modified.stpl
cp default.tpl modified.tpl

2- Then you have to edit the new files.

And add the following code over location / {

       # Redirect /webmail to webmail.domain
        location ~ ^/webmail {
                rewrite ^ https://webmail.%domain_idn%/ permanent;
        }

3- Last thing you have to choose the modified nginx template from the control panel.

Thanks