Using port 80 or 443 for control panel instead 8083

What is the main reason to use the port 8083 to login to control panel?

In a server I don’t have full access it’s blocked and that is a pain. I don’t see the reason no to use 80 or 443 so that we don’t need to specify port at all on the browser. Is there an easy way to just use a subdomain to login for example? I think that would be the most logical by default unless there is a strong reason not to do this.

You can use other ports.

You may be able to create a custom template for a different approach. I don’t have any example to guide you toward.

It runs under a separate services…

Ha ok. Thanks…

You could create a template for nginx that parses the web ui:
/usr/local/hestia/data/templates/web/nginx/hestia_cp.stpl



#=======================================================================#
# Default Web Domain Template                                           #
# DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS #
#=======================================================================#

server {
    listen      %ip%:%proxy_ssl_port% ssl http2;
    server_name %domain_idn% %alias_idn%;
    index       index.php index.html index.htm;
    ssl_certificate      %ssl_pem%;
    ssl_certificate_key  %ssl_key%;
    ssl_stapling on;
    ssl_stapling_verify on;
    error_log  /var/log/%web_system%/domains/%domain%.error.log error;

    include %home%/%user%/conf/web/%domain%/nginx.hsts.conf*;

    location / {
        proxy_pass      https://%ip%:8083;
    }

    location /error/ {
        alias   %home%/%user%/web/%domain%/document_errors/;
    }

    location @fallback {
        proxy_pass      https://%ip%:%web_ssl_port%;
    }

    location ~ /\.(?!well-known\/|file) {
       deny all;
       return 404;
    }

    include     /etc/nginx/conf.d/phpmyadmin.inc*;
    include     /etc/nginx/conf.d/phppgadmin.inc*;

    include %home%/%user%/conf/web/%domain%/nginx.ssl.conf_*;
}

/usr/local/hestia/data/templates/web/nginx/hestia_cp.tpl

#=======================================================================#
# Default Web Domain Template                                           #
# DO NOT MODIFY THIS FILE! CHANGES WILL BE LOST WHEN REBUILDING DOMAINS #
#=======================================================================#

server {
    listen      %ip%:%proxy_port%;
    server_name %domain_idn% %alias_idn%;
    index       index.php index.html index.htm;

    include %home%/%user%/conf/web/%domain%/nginx.forcessl.conf*;
    location / {
    return 301 https://%domain_idn%/;
    }

    location /error/ {
        alias   %home%/%user%/web/%domain%/document_errors/;
    }

    location @fallback {
        proxy_pass      https://%ip%:8083;
    }

    location ~ /\.(?!well-known\/|file) {
       deny all;
       return 404;
    }

    include     /etc/nginx/conf.d/phpmyadmin.inc*;
    include     /etc/nginx/conf.d/phppgadmin.inc*;

    include %home%/%user%/conf/web/%domain%/nginx.conf_*;
}

if you are having trouble with the port, replace in the template: %ip% with localhost

1 Like

Hello.
Is it also functional through Nginx - PHP FPM or only Nginx (Proxy)? Thank you.

1 Like

This templates should cover both, but you have to select the Proxy Template: hestia_cp if done as instructed

1 Like