All pastes #457196 Raw Edit

default ssl vhost

public text v1 · immutable
#457196 ·published 2007-04-25 07:53 UTC
rendered paste body
### Section 3: Virtual Hosts
#
# VirtualHost: If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at 
# <URL:http://httpd.apache.org/docs-2.0/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# Use name-based virtual hosting.
#
NameVirtualHost 192.168.10.5:443

<VirtualHost 192.168.10.5:443>
    ServerAdmin webmaster@esci.es
    DocumentRoot /var/www/localhost/htdocs/horde
    ServerName escimail.esci.es
    ErrorLog /var/log/apache2/escimail.esci.es-error_log
    CustomLog /var/log/apache2/escimail.esci.es-access_log common
    SSLEngine on
    SSLCertificateFile /etc/apache2/ssl/server.cert
    SSLCertificateKeyFile /etc/apache2/ssl/server.key
</VirtualHost>

<VirtualHost 192.168.10.5:443>
    ServerAdmin webmaster@esci.es
    DocumentRoot /var/www/localhost/htdocs/moodle
    ServerName aula.esci.es
    ErrorLog /var/log/apache2/moodle.esci.es-error_log
    CustomLog /var/log/apache2/moodle.esci.es-access_log common
    SSLEngine on
    SSLCertificateFile /etc/apache2/ssl/server.cert
    SSLCertificateKeyFile /etc/apache2/ssl/server.key
</VirtualHost>