• Debian 11 has reached its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.81 is the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Shared SSL

C

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

to

/home/httpd/vhosts/my_resellers_customers_domain.com/httpdocs


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?
 
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?
 
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:
https://www.ztatic.com/~icommercial

which is a symlinked folder to

/home/httpd/vhosts/icommercialfinancing.com/httpsdocs
 
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

vhost.conf:

Code:
RewriteEngine on

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

vhost_ssl.conf:
Code:
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
Code:
/usr/local/psa/admin/sbin/websrvmng --vhost-name=secure.yourdomain.com
 
Back
Top