@-FP and
@hardbrasil
It is not that difficult.
First of all, the server name vpsXYZ.ovh.net is something that is related to PTR records, so it is barely relevant in this matter (and you should not mess with that).
Second, you can follow these steps:
a) take a domain that you own, by preference an unique domain: at the DNS management system of the registrar,
- create a subdomain, let´s use (for the sake of illustration) plesk.<domain>.<tld>
- create an A record for the subdomain, to point to the IP assigned to your server
and note that you can also use
www.<domain>.<tld> (or even <domain>.<tld>), but I would recommend to use a subdomain.
The reason for the above is that Plesk Panel is rather indifferent about the domain name: the Plesk Panel can be reached via every URL of the form
https://<domain>.<tld>:8443/ OR
https://<sub>.<domain>.<tld>:8443/
and the port 8443 actually does the trick: this port number in an URL will result in a redirect to the Plesk Panel,
as long as the URL is pointing to the relevant IP of the server.
b) login to Plesk Panel and
- create a domain called <domain>.<tld>
- do not be bothered about notifications that "<domain>.<tld> does not resolve to ... IP" (or something similar)
- create a subdomain called plesk.<domain>.<tld>
- install the Plesk Let´s Encrypt extension (if you did not do this yet)
- go to the subdomain and click on the "Let´s Encrypt" icon and follow the suggested steps
and that is about it.
Well, almost, you can now access the Plesk Panel with the URL
https://plesk.<domain>.<tld>:8443/, using a certificate provided by Let´s Encrypt.
So, it is secured with a certificate, but any other URL pointing to the IP assigned to the server will not use a https connection with (letsencrypt) certificates.
For that reason, a little of bit of "cheating" has to be done and this can actually be done in various ways, but only one of them will satisfy the objective: one secure URL for Plesk.
The required simple tweak of config files will be given in step c.
c) login with SSH and do
- run the command:
vi /etc/sw-cp-server/config
- look for the line starting with the Nginx directive
error_page
- replace the variable $hostname with plesk.<domain>.<tld>
and, afterwards, do not forget to restart the sw-cp-server (/etc/init.d/sw-cp-server restart on Centos/Rhel and service sw-cp-server restart on Ubuntu/Debian)
Note that you now have fixed the Plesk Panel to one unique URL: plesk.<domain>.<tld>
The above implies that, as long as the URL contains ":8443", all users can type what they want (http/https, all other domains pointing to the server).
In every case (with :8443 on the end of the URL), one gets redirected to the SECURE and UNIQUE Plesk Panel URL.
That is all..........
Hope the above helps!
Regards.....