专注收集记录技术开发学习笔记、技术难点、解决方案
网站信息搜索 >> 请输入关键词:
您当前的位置: 首页 > 应用服务器

关于在本地配置一个www.sina.com和music.sina.com的域名的有关问题

发布时间:2010-06-14 17:08:54 文章来源:www.iduyao.cn 采编人员:星星草
关于在本地配置一个www.sina.com和music.sina.com的域名的问题
如题
是在本地的,不是外网的。所以自然也谈不上什么域名提供商了。
还有就是对系统有什么要求
2000   ,xp,2000server,2003server?
我记得以前本地服务器是2003server的,IP是192.168.1.200
  他配置的域名就有   www.sina.com,以及music.sina.com这样的域名(当然sina的随便举个例子罢了)

请教各位大哥大姐
怎么搞




------解决方案--------------------
windows\system32\drivers\etc\hosts 中加入

就成了.
------解决方案--------------------
哥们你打开那文件是这样的:
# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host

name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '# ' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host

127.0.0.1 localhost


然后你这样改:
127.0.0.1 localhost www.sina.com bbs.sina.com


这样着两个域名就指向本地了,如果你自己机器上有Apache之类,这两个域名就访问你的主页,两外,要是在局域网里面应用,需要把每个人的Host文件都篡改了……
------解决方案--------------------
友情提示:
信息收集于互联网,如果您发现错误或造成侵权,请及时通知本站更正或删除,具体联系方式见页面底部联系我们,谢谢。

其他相似内容:

热门推荐: