Httpd VirtualHost: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
No edit summary
Line 21: Line 21:
</VirtualHost>
</VirtualHost>
</pre>
</pre>
=IP:port Pair=
<font color=purple><tt>IP</tt> could be *</font>

Revision as of 19:06, 6 January 2016

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 *