• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

[HOW TO] use cp.domain.com instead of www.domain.com:8443

KingSky

New Pleskian
It took me hours to figure this out, but I finally have it working!

In your vhost.conf and vhost_ssl.conf files for each virtual host (located in /home/httpd/vhosts/domain.com/conf)

Add this code:

Code:
ServerAlias cp.@domain_name@
Options +FollowSymLinks 
RewriteEngine on 
RewriteCond %{HTTP_HOST}  !^(www\.)?@domain_name@
RewriteCond %{HTTP_HOST}  ^(cp\.)?([^\.]*)\.com 
RewriteRule ^(.*)$
[url]https://www.@domain_name@:8443[/url]

Keep in mind that if this file isn't there, you just need to create it.

Make sure to replace @domain_name@ with your domain name. You can put this code directly in your .skel/conf files with no changes to the above code so that new domains are already set up this way :)

The only problem with this code is this line:

RewriteCond %{HTTP_HOST} ^(cp\.)?([^\.]*)\.com

does anybody know how to modify it so that it catches all tld's besides .com?
 
Back
Top