Chinaunix首页 | 论坛 | 博客
  • 博客访问: 87505
  • 博文数量: 30
  • 博客积分: 2010
  • 博客等级: 大尉
  • 技术积分: 410
  • 用 户 组: 普通用户
  • 注册时间: 2008-12-17 16:34
文章分类

全部博文(30)

文章存档

2010年(2)

2009年(24)

2008年(4)

我的朋友

分类: LINUX

2009-04-27 18:17:06

从Apache 官方文档里截取的

Many servers want to be accessible by more than one name. This is possible with the directive, placed inside the section. For example in the first block above, the directive indicates that the listed names are other names which people can use to see that same web site:

ServerAlias domain.tld *.domain.tld

then requests for all hosts in the domain.tld domain will be served by the virtual host. The wildcard characters * and ? can be used to match names. Of course, you can't just make up names and place them in ServerName or ServerAlias. You must first have your DNS server properly configured to map those names to an IP address associated with your server.


很多公司因工作需要架设了多个Web站点来,为了节省成本,通常将这些网站放在同一个服务器上,员工使用二级域名访问这些站点。但维护大量二级域名工作量很大,其实我们可以采用泛域名解析技术来解决这个难题

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