Httpd VirtualHost: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 13: | Line 13: | ||
=Syntax= | =Syntax= | ||
< | <pre> | ||
<VirtualHost IP:port> | <VirtualHost IP:port> | ||
ServerName example.novaordis.com | ServerName example.novaordis.com | ||
Line 19: | Line 19: | ||
ErrorLog "logs/example.novaordis.com-error_log" | ErrorLog "logs/example.novaordis.com-error_log" | ||
</VirtualHost> | </VirtualHost> | ||
</ | </pre> |
Revision as of 19:03, 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>