• 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.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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