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 [email protected]
    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!

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.