All pastes #518871 Raw Edit

SSL vhost

public text v1 · immutable
#518871 ·published 2007-05-29 13:30 UTC
rendered paste body
I am running under Debian Etch, with apache2

apache2 -S gives :

VirtualHost configuration:
80.xx.xx1.x96:*       is a NameVirtualHost
         default server www.xxxxx.fr (/etc/apache2/sites-enabled/xxx:1)
         port * namevhost www.xxxxx.fr (/etc/apache2/sites-enabled/xxx:1)
[.....]
wildcard NameVirtualHosts and _default_ servers:
*:443                  is a NameVirtualHost
         default server my.domain.eu (/etc/apache2/sites-enabled/myvhostssl:3)
         port 443 namevhost my.domain.eu (/etc/apache2/sites-enabled/myvhostssl:3)
Syntax OK


Here is myvhostssl file

NameVirtualHost *:443
<VirtualHost *:443>
        SSLEngine on
        SSLCertificateFile    /etc/apache2/ssl/mycert.pem

        ServerName my.domain.eu

       DocumentRoot /home/my.domain.eu/www
        <Directory /home/my.domain.eu/www>
                Options Indexes ExecCGI SymLinksIfOwnerMatch
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>
        CustomLog /home/my.domain.eu/logs/web.log combined
</VirtualHost>


cat /etc/apache2/ports.conf
Listen 80
Listen 443