<VirtualHost> Directive
Description: | Contains directives that apply only to a specific hostname or IP address |
---|---|
Syntax: | <VirtualHost addr[:port] [addr[:port]] ...> ... </VirtualHost> |
Context: | server config |
Status: | Core |
Module: | core |
<VirtualHost>
and </VirtualHost>
are used to enclose a group of directives that will apply only to a particular virtual host. Any directive that is allowed in a virtual host context may be used. When the server receives a request for a document on a particular virtual host, it uses the configuration directives enclosed in the <VirtualHost>
section. Addr can be any of the following, optionally followed by a colon and a port number (or *):
- The IP address of the virtual host;
- A fully qualified domain name for the IP address of the virtual host (not recommended);
- The character
*
, which acts as a wildcard and matches any IP address. - The string
_default_
, which is an alias for*
ServerName Directive
Description: | Hostname and port that the server uses to identify itself |
---|---|
Syntax: | ServerName [scheme://]domain-name|ip-address[:port] |
Context: | server config, virtual host |
Status: | Core |
Module: | core |
The ServerName
directive sets the request scheme, hostname and port that the server uses to identify itself.
원문 : https://httpd.apache.org/docs/current/en/mod/core.html#virtualhost
'Server > Apache' 카테고리의 다른 글
[Apache-Tomcat] Tomcat Context.xml 구조 이해(스크랩) (0) | 2018.12.26 |
---|---|
[Apache-Jmeter] 서비스 성능테스트(스크랩) (0) | 2018.10.14 |
[Apache] Apache config 내의 ScriptAlias 지시어란? (0) | 2018.10.08 |
[Apache] Apache Http Header customizing(mod_headers) (0) | 2018.10.07 |
[Apache] Apache log customizing하기(Apache Module mod_log_config) (0) | 2018.10.07 |