When a customer has a problem with a website, we normally would go to customerdomain.com:2222 (2222 because of directadmin) and it would redirect us to the serverhostname:2222. This way we could quickly find out on which server the customer website is located. And we would be on the login page of that server. When I try this on our new Plesk servers I get the plesk login page under the users domain name (customerdomain.com:8443) with SSL cert error, so no redirect to the server hostname.
I found the following support page:
I would have to add:
if ($host !~ 'hostname.com'){
rewrite ^/(.*)$ https://hostname.com:8443/$1 permanent;
}
To /etc/sw-cp-server/conf.d/z-plesk.inc. But wouldn't this also redirect customerdomain.com to serverhostname:8443, not only customerdomain.com:8443?
I found the following support page:
How to configure a redirect from the domain name/IP address to the server hostname on port 8443 in Plesk for Linux?
Applicable to: Plesk for Linux Question How to set up the following redirects in Plesk: CONFIG_TEXT: https://example.com:8443 => https://hostname.com:8443https://203.0.113.2:8443 => https:...
support.plesk.com
I would have to add:
if ($host !~ 'hostname.com'){
rewrite ^/(.*)$ https://hostname.com:8443/$1 permanent;
}
To /etc/sw-cp-server/conf.d/z-plesk.inc. But wouldn't this also redirect customerdomain.com to serverhostname:8443, not only customerdomain.com:8443?