免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 895 | 回复: 0
打印 上一主题 下一主题

使用ServerAlias方便客户访问 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-04-27 18:17 |只看该作者 |倒序浏览

从Apache 官方文档里截取的
Many servers want to be accessible by more than one name.  This is
        possible with the
ServerAlias
        directive, placed inside the  section. For
        example in the first  block above, the
ServerAlias
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 www.domain.tld 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站点来,为了节省成本,通常将这些网站放在同一个服务器上,员工使用二级域名访问这些站点。但维护大量二级域名工作量很大,其实我们可以采用泛域名解析技术来解决这个难题
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/88799/showart_1912260.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP