using two diffrent SSL configuration depending on IP from .htaccess

Discussion in 'Apache' started by rincewind, Feb 27, 2007.

  1. #1
    Hello!

    Is there a way to configure a webdir via a .htaccess file to have diffrent SSL directives via .htaccess? Im using apache2..

    If I have my own IP (aaa.bbb.ccc.ddd) then can I configure it to this configuration

    SSLEngine On
    SSLOptions +OptRenegotiate
    SSLCertificateFile /usr/local/apache2/conf/keys/myCrtFile.crt
    SSLCertificateKeyFile /usr/local/apache2/conf/keys/myPemFile.pem

    And every other IP that is connecting to the dir have the following requirements:

    SSLVerifyClient require
    SSLVerifyDepth 1
    SSLCACertificateFile /usr/local/apache2/conf/keys/requiredSSL.crt

    Is there someway to do this?
    Please help=)

    Regards,
    -- Rincewind
     
    rincewind, Feb 27, 2007 IP