关于在本地配置一个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文件都篡改了……
[解决办法]
顶