[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Sobre HTTPS y Apache2



----- Original Message ----- 
From: "Mario Oyorzabal Salgado"
>

>Estuve leyendo un poco a base de esta pregunta, y tengo otra, lei que se
>puede usar mod_ssl para apache2, pero hay una forma de usar certificados
>diferentes para cada host virtual o solamente teniendo diferentes
>instancias de apache2 se logra eso ?.

Con un solo apache2 con virtualhosts sería algo así:
En httpd.conf
--------
<VirtualHost *:80>
    ServerName www.midominio.es
    DocumentRoot /var/www/midominio/
    Redirect permanent /ssl https:/www.midominio.es
---------
En ssl.conf
---------
<VirtualHost _default_:443>
    ServerName www.midominio.es:443
    DocumentRoot "/var/www/midominiossl/"
(...)
     SSLEngine on
     SSLCertificateFile /usr/local/apache2/conf/ssl.crt/midominio.crt
     SSLCertificateKeyFile /usr/local/apache2/conf/ssl.key/midominio.key
     SSLCertificateChainFile /usr/local/apache2/conf/ssl.crt/intermediate.crt
-----------

Saludos
Guimi
http://www.guimi.net



Reply to: