Jump to content

Different SSL configuration for virtual hosts?


timothyb89

Recommended Posts

Hello, I'm wondering if it is possible to have a separate SSL configuration for different virtual hosts. To clarify, I need to selectively encrypt specific subdomains/virtual hosts on my server .

 

I tried making a virtual host with the usual SSL config but I didn't have any luck:

<VirtualHost *:80>
    ServerAdmin root@mydomain.org
    ServerName sslhost.mydomain.org:443
    DocumentRoot /srv/www/vhosts/sslhost/htdocs/
    
    HostnameLookups Off
    UseCanonicalName Off
    ServerSignature On

    SSLCipherSuite HIGH:MEDUIM
    SSLProtocol all -TLSv1
    SSLCertificateFile /srv/www/vhosts/sslhost/ssl/ssl.crt/sslhost-server.crt
    SSLCertificateKeyFile /srv/www/vhosts/sslhost/ssl/ssl.key/sslhost-server.key
    SSLCertificateChainFile /srv/www/vhosts/sslhost/ssl/my-ca.crt
    SSLCACertificateFile /srv/www/vhosts/sslhost/ssl/my-ca.crt

    Include /etc/apache2/conf.d/*.conf

    <Directory "/srv/www/vhosts/sslhost">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
    </Directory>

</VirtualHost>

 

Is there something I'm doing wrong, or is doing this even possible?

 

-Thanks!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.