Virtual host SSL

Discussion in 'General OpenLiteSpeed Discussion' started by vuvps, Jun 23, 2015.

  1. vuvps

    vuvps New Member

    Hello all.

    I'm using openlitespeed for my webserver, I can configure listener with SSL. But I have 2 domain and 2 virtual host with different SSL certificate. How to configure SSL for virtual host with per SSL cert for one virtual host, but using one port 443 for client ?

    Thanks you very much for all your support.
     
  2. lsfoo

    lsfoo Administrator

    Hi vuvps,

    Assuming you're using the web admin, after you initially set up your two virtual hosts (and save and restart the server), you can further configure them both to use a specific SSL cert.

    Once they both have the certs added, go to your SSL Listener configuration and add the vhosts to the Virtual Host Mappings. You can specify the domains here.

    Let me know if this helps or if you have further questions,
    Kevin
     
    vuvps likes this.
  3. vuvps

    vuvps New Member

    Thanks you lsfoo. Have a nice day !
     
    lsfoo likes this.
  4. fadhilah

    fadhilah New Member

    i have the same problem, so i assume the steps are like this right?
    1. create 443 listener and set secure to yes
    2. map virtual host 1 and virtual host 2 to 443
    3. configure ssl at virtual host
    4. graceful restart
     
  5. lsfoo

    lsfoo Administrator

    Hi fadhilah,

    Yes, that should work. The main thing to note is that the domains must be different. (i.e. they both can't be example.com.)

    Let me know if you have any issues,
    Kevin
     
  6. xikebattu

    xikebattu New Member

    1 . I install OpenLiteSpeed 1.4.25, virtual host 1 and virtual host 2
    2. create 443 listener and set secure to yes
    3. map virtual host 1 and virtual host 2 to 443
    4. configure ssl at virtual host for virtual host 1 and virtual host 2
    5. graceful restart

    But check netstat -tnl port 443 not connect, so 2 site ssl virtual host 1 and virtual host 2 not access https://

    If I config like bellow

    1. create 443 listener and set secure to yes
    2. Listener 443 > SSL -> config ssl CERT, Private key for virtual host 1
    3. map virtual host 1 to 443

    access https://host1 ok.

    But map virtual host 2 to 443, access https://host2 not trust ssl.

    Please help me.
     
  7. lsfoo

    lsfoo Administrator

    Hi @xikebattu

    Did you set up the certificate for the listener as well?

    Cheers,
    Kevin
     
  8. xikebattu

    xikebattu New Member

    I have setup for 2 site ssl virtual host 1 and virtual host 2 success, thanks.
     
  9. lsfoo

    lsfoo Administrator

    To clarify, you mean that you were able to successfully get it set up?
     
  10. xikebattu

    xikebattu New Member

    Yes, I have setup success multi ssl (SNI) for sites on my server.
     

Share This Page