Httpd VirtualHost

From NovaOrdis Knowledge Base
Revision as of 19:08, 6 January 2016 by Ovidiu (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

External

Internal

Overview

<VirtualHost> and </VirtualHost> are used to enclose a group of directives that only apply to a particular virtual host.

Syntax

<VirtualHost IP:port>
    ServerName example.novaordis.com
    DocumentRoot "/var/www/example.novaordis.com"
    ErrorLog "logs/example.novaordis.com-error_log"
</VirtualHost>

IP:port Pair

IP could be *

_default_

Any virtual that includes the _default_ wildcard is given the same ServerName as the main server.