› Foros › PC › Software libre
<VirtualHost *:443>
ServerAdmin postmaster@midominio.com
DocumentRoot /var/www/secure/
ServerName secure.midominio.com
<Directory /var/www/secure/>
Options Indexes MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
SSLEngine On
SSLCertificateFile /etc/ssl/certs/publico.pem
SSLCertificateKeyFile /etc/ssl/private/privado.pem
</VirtualHost>
# a2ensite default
# apache2ctl configtest
# service apache2 reload
[warn] _default_ VirtualHost overlap on port 443, the first has precedence
<VirtualHost *:443>
ServerAdmin postmaster@midominio.com
DocumentRoot /var/www/secure1/
ServerName secure1.midominio.com
</VirtualHost>
<VirtualHost *:443>
ServerAdmin postmaster@midominio.com
DocumentRoot /var/www/secure2/
ServerName secure2.midominio.com
</VirtualHost>