Chinaunix首页 | 论坛 | 博客
  • 博客访问: 232011
  • 博文数量: 61
  • 博客积分: 2482
  • 博客等级: 少校
  • 技术积分: 675
  • 用 户 组: 普通用户
  • 注册时间: 2009-03-02 11:03
文章分类

全部博文(61)

文章存档

2012年(1)

2011年(1)

2010年(52)

2009年(7)

分类: 系统运维

2010-08-25 10:21:19

when a request arrives, the server will first check if it is using an IP address that matches the . If it is, then it will look at each section with a matching IP address and try to find one where the or ServerAlias matches the requested hostname. If it finds one, then it uses the configuration for that server. If no matching virtual host is found, then the first listed virtual host that matches the IP address will be used.

As a consequence, the first listed virtual host is the default virtual host. The DocumentRoot from the main server will never be used when an IP address matches the directive. If you would like to have a special configuration for requests that do not match any particular virtual host, simply put that configuration in a container and list it first in the configuration file.

阅读(1666) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~