1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Shared SSL

Discussion in 'Plesk for Linux - 8.x and Older' started by cmurphy@, Sep 16, 2005.

  1. cmurphy@

    cmurphy@ Guest

    We run a dedicated box, one which we host reseller accounts on.

    One of our resellers wants to offer his clients shared SSL.

    I have tried getting this to work using the following method.

    create symbolic link from reseller_domain/httpsdocs/client_dir



    then chown the newly created /reseller_domain/httpsdocs/his_clients_direstory to both the resellers and the clients username.psaserv

    However no matter who i chown it to, it wont work.

    Can anyone please tell me how this is done?
  2. phoenixisp

    phoenixisp Silver Pleskian

    Feb 2, 2002
    Likes Received:
    Did you purchase a wildcard certificate or one for a single domain?
  3. cmurphy@

    cmurphy@ Guest

    actually i have this working except one small bug.

    firstly its not a wildcard cert, hence needing to use /web_user/client as the symlinked directory.

    However, creating the symlink from reseller.com/web_users/~client to /client.com/httpsdocs does work there is still one small problem.

    If you go to https://reseller.com/~client without putting the /index.html on it, your are instantly redirected to https://reseller.com

    Any ideas?
  4. cmurphy@

    cmurphy@ Guest

    also, setting up shared SSL this way has a HUGE problem which i need help with ASAP.

    The secure documents wont run as php, the scripts display on screen as text.

    How do i fix this?

    Check these links:

    which is a symlinked folder to

  5. mian

    mian Guest

    mod_rewrite is probably the easiest method, here is how I do it.

    First add secure.yourdomain.com to Plesk (as a domain, not a subdomain).

    in /home/httpd/vhosts/secure.yourdomain.com/conf place these


    RewriteEngine on
    RewriteCond     %{HTTPS}        off
    RewriteRule     (.*)            https://%{HTTP_HOST}%{REQUEST_URI} [R]
    (redirects all non-HTTPS requests to HTTPS)

    SSLProxyEngine  on
    SSLProxyVerify  none
    RewriteEngine   on
    RewriteMap      lowercase int:tolower
    RewriteCond     /home/httpd/vhosts/${lowercase:$1}      -d
    RewriteRule     ^/([^.]+\.[^\/]+)(.*)                   https://${lowercase:$1}$2 [P]
    (enables Apache SSL proxy engine, tests /home/httpd/vhosts/theirdomain.com exists and proxies the request through to https://theirdomain.com/ internally.

    then execute
    /usr/local/psa/admin/sbin/websrvmng --vhost-name=secure.yourdomain.com