以文本方式查看主题

-  搭建论坛  (http://bbs.diylsoft.com:8118/starforum/index.asp)
--  用户服务  (http://bbs.diylsoft.com:8118/starforum/list.asp?boardid=2)
----  局域网内能使用虚拟主机吗  (http://bbs.diylsoft.com:8118/starforum/dispbbs.asp?boardid=2&id=32045)

--  作者:yaya
--  发布时间:2012-5-14 15:56:04
--  局域网内能使用虚拟主机吗
如题,如果在一个局域内的服务器上运行搭建服务器,能不能使用搭建的虚拟主机功能?
--  作者:FSJM
--  发布时间:2012-5-14 17:30:58
--  

“纯局域网”内部使用,肯定没有问题;

要使用内部设置的“自定义域名”;

 

Win XP 的设置位置为: WINDOWS\\system32\\drivers\\etc\\hosts

 

hosts 是一个文件,直接使用 “记事本”编辑就可以。


--  作者:FSJM
--  发布时间:2012-5-14 17:34:18
--  

 

# 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
192.168.0.10  myabc

......

......


--  作者:yaya
--  发布时间:2012-5-15 8:48:53
--  
谢谢回复,就是不太明白设置的内容是什么意思
--  作者:yaya
--  发布时间:2012-5-15 9:02:54
--  
试了试,明白了,成功,谢谢!虚拟主机太好了!
--  作者:seedog
--  发布时间:2012-5-15 13:04:26
--  

我也试了,非常不错;

缺点:WINDOWS\\system32\\drivers\\etc\\hosts 域名,要在每一台“使用的客户机”上设置;

如何解决???


--  作者:yaya
--  发布时间:2012-5-15 15:06:59
--  
这一点确实挺麻烦
--  作者:development
--  发布时间:2012-5-15 15:33:15
--  

要使用 DNS  解析服务器,就可以解决了,Window 2003 内部就带。