• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question Redirect customerdomain.com:8443 to serverhostname:8443

LarsK

New Pleskian
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?
 
Back
Top