IP address instead of hestia subdomain visible

Hello,

I just recently upgraded my server (backup + move everything on a bigger server spec),
and since then I no longer see my hestiaCP custom subdomain,
but an IP address (which is not my real IP address);

in the CLI (user@ip-address), but also in the hestiaCP browser-window tab.

Is there something I must do, to get that custom subdomain back to be displayed?

[btw, of course I pointed my old static IP address onto the new server]

Thank you

Hi @AndyHestia,

Could you please give more details? I don’t know what you mean with custom subdomain and that you see an ip address… are you talking about the server’s hostname, was that subdomain assigned to a user in your old server?

No idea what you mean.

Hey,

yes, I mean the custom server hostname.

When logging into linux, I always saw: user@customhost,
now its user@IP-address.

Same goes for the hestiaCP; in the window tab I see:
WEB - ip-(address) - Hestia Control Panel
instead of
WEB - customhost - Hestia Control Panel

All since I upgraded the server.

Seems you need to change the server’s hostname.

v-change-sys-hostname your.custom.domain

And you should also get a certificate to it:

v-add-letsencrypt-host

Thanks.

However, I am still able to enter hestiaCP via web url (hostname.domain.com:port)

So actually that hostname is intact; it just doesn’t get shown in CLI as before.

Is it really needed to change that hostname because of that?

[I initially asked out of security concerns; if there is none, I would keep it as is].

Thanks.

Because one of users already had it assigned so it is normal that you can access using it.

Show the output of these commands:

v-search-object your.custom.domain
hostnamectl hostname
openssl x509 -in /usr/local/hestia/ssl/certificate.crt -noout -issuer -subject -dates
v-search-object your.custom.domain

shows:

hostnamectl hostname

shows the IP-address

openssl x509 -in /usr/local/hestia/ssl/certificate.crt -noout -issuer -subject -dates

shows:

Yes, I should mention that I am not using letsencrypt but cloudflare certificate.

Ok, then you only need to change the hostname:

v-change-sys-hostname your.custom.domain
1 Like

Thanks, got it.

1 Like