• 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.

Question How to edit the Custom URL Plesk login page?

hotdog

New Pleskian
Server operating system version
Debian 12
Plesk version and microupdate number
18.0.6.2 #1
I enabled custom domain for Plesk login ("One specified domain or subdomain that resolves to the server IP address but is not used for hosting.Browsing this domain or subdomain will open the Plesk login page.")

It all works fine, but I don't like that when you go to the custom domain, it shows a "Web Server's Default Page" and on it a "Log in to Plesk" button.

I would like it to go immediately to the Login form when you enter the custom domain.

Can this be achieved somehow?
 
I enabled custom domain for Plesk login ("One specified domain or subdomain that resolves to the server IP address but is not used for hosting.Browsing this domain or subdomain will open the Plesk login page.")

It all works fine, but I don't like that when you go to the custom domain, it shows a "Web Server's Default Page" and on it a "Log in to Plesk" button.
That's not suppose to happen. Has the domain as been added as an domain in Plesk?
 
That's not suppose to happen. Has the domain as been added as an domain in Plesk?
Before Plesk tech support had even the chance to look at the ticket, I figured out that the issue only happens when I try to visit the custom url with http:// instead of https://

With https:// it goes immediately to log in screen.

You would think the http:// should redirect to the https://? But I don't see a setting for that in the Custom Plesk URL settings.
 
Before Plesk tech support had even the chance to look at the ticket, I figured out that the issue only happens when I try to visit the custom url with http:// instead of https://

With https:// it goes immediately to log in screen.

You would think the http:// should redirect to the https://? But I don't see a setting for that in the Custom Plesk URL settings.
Gosh the EDIT function on Talk Plesk is slightly restrictive. I wish it was longer than 4 minutes (I could have edited my post instead of making another). My suggestion would be 60 minutes, but maybe you have a reason why it's so short.

Anyway, Plesk tech support replied and said that it should by default redirect the http to https, but they are now investigating why it does not.

Very impressed by the speed of Plesk support!
 
OK, so the support agent found this article:


Which means that the lack of http -> https redirection is expected behavior.

However, a workaround is to put the following code in /var/www/vhosts/default/htdocs/.htaccess
Code:
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]
Header always set Content-Security-Policy "upgrade-insecure-requests;"
 
Back
Top