If you want to use subdomain based certificat and virtual host, please read this doc, it will help you understand the case you are experiencing and the solution you can adopte: http://fusesource.com/docs/framework/2.1/security/i382183.html http://www.verisign.com/ssl/ssl-information-center/ssl-licensing/index.html Inas. From: uthopiko@xxxxxxxxx Date: Mon, 4 May 2009 09:27:46 +0200 To: users@xxxxxxxxxxxxxxxx Subject: SSL and Virtual Host Hello, first i`m sorry about my English... Second, i explain which is the problem do i have. I have Apache server with many Virtual Host, one of this Virtual Host has SSL activate and runs ok. But i have to create another Virtual Host also with SSL but with a different certificate, is this posible?I tried in my localhost and runs ok, but on a final server not runs. When try in Firefox https, i have and error of bad_cert and the error is(el certificado solo es valido para https:\\www.ejemplo1.com // the certificate is only valid for http://www.ejemplo1.com) and in the error log gets the following error: (13)Permission denied: file permissions deny server access: This is the code of the configuration of the localhost! # NAME VIRTUAL HOSTS POR IFACE 1: xx.xxx..xx.115 NameVirtualHost xx.xx.xx.115:80 NameVirtualHost xx.xx.xx.115:443 # NAME VIRTUAL HOSTS POR IFACE 2: xx.xx.xx.116 NameVirtualHost xx.xx.xx.116:80 NameVirtualHost xx.xx.xx.116:443 # ESTE VHOST ES PARA REDIRECCIONA A HTTPS <VirtualHost xx.xx.xx.115:80> ServerNamewww.ejemplo1.com ServerAlias ejemplo1.com DocumentRoot /var/www/ejemplo1 Redirect / https://www.ejemplo1.com ErrorLog /home/irontec/web_logs/ejemplo1_http-error.log </VirtualHost> # ESTE VHOST ES PARA CERTIFICADO SSL <VirtualHost XX.XX.XX.115:443> ServerNamewww.ejemplo1.com ServerAlias ejemplo1.com DocumentRoot /var/www/ejemplo1 SSLEngine on SSLCertificateFile /etc/apache2/ssl/www.ejemplo1.com.crt SSLCertificateKeyFile /etc/apache2/ssl/www.ejemplo1.com.key ErrorLog /home/irontec/web_logs/ejemplo1_https-error.log </VirtualHost> # ESTE VHOST ES PARA VERSION PRUEBAS <VirtualHost xx.xx.xx.116:80> DocumentRoot /var/www/ejemplo2 ServerName ejemplo2.miempresa.net SSLEngine on SSLCertificateFile /etc/apache2/ssl/ejemplo2/certificado-servidor.pem SSLCertificateKeyFile /etc/apache2/ssl/ejemplo2/claveprivada.pem SSLCACertificateFile /etc/apache2/ssl/ejemplo2/CAXplotacert.pem SSLVerifyClient require ErrorLog /home/irontec/web_logs/ejemplo2-error.log </VirtualHost> # ESTE VHOST ES PARA VERSION PRUEBAS <VirtualHost xx.xx.xx.116:80> DocumentRoot /var/www/ejemplo2 ServerName ejemplo2.miempresa.net ErrorLog /home/irontec/web_logs/ejemplo2-error.log </VirtualHost> Tous vos amis discutent sur Messenger, et vous ? Téléchargez Messenger, c'est gratuit ! |