Apéndice AN. Archivo de configuración /etc/apache/conf.d/vhost.conf

### Section 3: Virtual Hosts
#
# VirtualHost: If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them.
# Please see the documentation at <URL:http://www.apache.org/docs/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.

#
# If you want to use name-based virtual hosts you need to define at
# least one IP address (and port number) for them.

NameVirtualHost gsr.pt
NameVirtualHost gsr.pt:443

#
# gsr.pt
#

<VirtualHost gsr.pt>
        ServerName gsr.pt
        ServerAdmin sergio@gsr.pt
        DocumentRoot /var/www/
        # Logs Globales
        ErrorLog /var/log/apache/error.log
        CustomLog /var/log/apache/access.log combined
</VirtualHost>

#
# gsr.pt:443
#

<VirtualHost gsr.pt:443>
        ServerName gsr.pt
        ServerAdmin sergio@gsr.pt
        DocumentRoot /var/www/
        # Logs
        ErrorLog /var/log/apache/ssl-error.log
        CustomLog /var/log/apache/ssl-access.log combined

        <IfModule mod_ssl.c>
                SSLEngine on
                SSLCertificateFile    /etc/apache/ssl.crt/server.crt
                SSLCertificateKeyFile /etc/apache/ssl.key/server.key
                SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
        </IfModule>
</VirtualHost>