1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice

Shared SSL

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

  1. cmurphy@

    cmurphy@ Guest

    0
     
    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?
     
  2. phoenixisp

    phoenixisp Silver Pleskian

    27
    57%
    Joined:
    Feb 2, 2002
    Messages:
    840
    Likes Received:
    0
    Did you purchase a wildcard certificate or one for a single domain?
     
  3. cmurphy@

    cmurphy@ Guest

    0
     
    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

    0
     
    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
     
  5. mian

    mian Guest

    0
     
    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
    
     
Loading...