Restricted Notes by a Geek

Automatic login on Plesk

by admin on May.12, 2008, under Plesk

I had a client today asking this very same question and thought I will post it here just as a reminder. Its very simple and useful yet not always easy to find.

Rackerhacker also have the answer to this:

https://yourserver.com:8443/login_up.php3?login_name=admin&passwd=yourpassword


2 comments to “Automatic login on Plesk”

  1. Alex

    can you tell me how to block https://www.domain.tld:8443/ for each domain on Plesk, can I use vhost.conf instead of IPtables?

    Because Google is indexing my plesk login pages for many domains and when is indexed it won’t index any other pages of the site. The worse I get Google visitors hitting the PLESK login page instead of the main index page every day.

    So i thought would be good to block the plesk login for each domain by any means, as I only login to the main server rather than the domain. This may also block Google from indexing it.

  2. admin

    This is an interesting problem. This however wont be fixed via the vhost.conf.

    The vhost.conf file is solely meant for settings for the domain only. Port 8443 is not used by the default web server process but instead by a separate web server process which could be Apache in Plesk 8.2 and older by is lighthttpd in Plesk 8.3 and later.

    I would rather recommend a url rewrite in /usr/local/psa/admin/conf/httpsd.rw.include (Plesk’s location on Centos 4.x) which will have a “RewriteCond” which detect if this is the google bot and then using “RewriteRule” to redirect it to port 80. Be sure though to test this first on a test server before applying it to a live server else you might lock your clients out of the Control panel completely.

    Now I am not that good with Rewrite rules but we want our clients to always use https instead of http in our control panel to keep the sessions secure. We also run the control panel on a seperate ip so we have lighthttpd listing on both port 80 and 443 on that ip. Thus our config look like this.

    RewriteEngine On
    RewriteCond %{SERVER_PORT} !^443$
    RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [L,R]
    RewriteCond %{SERVER_PORT} !^80$
    RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [L,R]

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...