hi pls how change login my panel from ip:port to hostname like cp.domain without port ?
Welcome to the HestiaCP Forum.
It sounds like you want to do this.
I’ve seen this before, but the explanation is incomplete and unclear.
GitHub links are not working
We need a detailed article on converting an IP address to a domain with SSL activation.
This is to protect the panel, as security is the first thing people think about after installing the panel.
This made laugh.
I certainly admire your optimism. I find most people tend to never give security a second thought, let alone a first one.
You will need to create your own templates to proxy your panel requests and assign them to the hostname you wish to use to access your panel.
The docs are all open source, so you could write something up and submit a PR once you have a working guide derived from your preferred configuration.
The certificate will be handled the same as any other site on your HestiaCP server.
I think I found a good solution using Gemini AI.
I added a domain to the hestiacp and activated SSL.
Change in Config hestiacp
It blocked access via IP and allowed access via domain with HTTPS.
/usr/local/hestia/nginx/conf/nginx.conf
Vhost
server {
listen 8083 ssl;
server_name domain.com;
if ($host !~* ^domain\.com$)
{
return 444;
}
root /usr/local/hestia/web;
# Fix error “The plain HTTP request was sent to HTTPS port”
error_page 497 https://$host:$server_port$request_uri;
error_page 403 /error/404.html;
error_page 404 /error/404.html;
error_page 410 /error/410.html;
error_page 500 501 502 503 504 505 /error/50x.html;
ssl_certificate /home/user/conf/web/domain.com/ssl/domain.com.crt;
ssl_certificate_key /home/user/conf/web/domain.com/ssl/domain.com.key;
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.