远达物流电话号码:Dreamweaver MX 2004

来源:百度文库 编辑:杭州交通信息网 时间:2024/04/29 15:16:27
如何建立站点 在XP系统里!
只有虚拟目录??没有站点!

我给你详细解释一下:
首先你要装好iis服务程序(你应该知道怎么装的)
2配置iis:
打开internet信息服务管理
点开网站->默认网站
右键单击"默认网站"后选择 属性 选项
在对话框中看"网站"->网站标识->ip地址->
选择一个ip地址.比如是192.168.0.69
再进行"主目录"设置,本地路径 选择你的网页存放的地址,比如c:\myweb
点确定后
只要你在c:\myweb放网页文件,比如index.htm
那么你就可以在自己的计算机浏览器里面输入:
http://192.168.0.69/index.htm

http://localhost/index.htm
就可以访问了.
当你建立虚拟目录后,比如虚拟目录名为cd
通过http://localhost/cd/
可以访问虚拟目录的东西.
如果你觉得这样不爽,那么我就透露一点非常高级的东西:
如果你想在本地浏览器输入
http://www.myweb.com
访问自己的网页
那么这样:
在系统的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

只要在下面添加一行:
192.168.0.69 www.myweb.com
然后在浏览器里输入
www.myweb.com
就会自动跳转到本机的web服务器.
-------------------------------------
by 只爱刘锦

爱你就是这么莫名其妙,就是这么义无返顾,我知道我不会是你今生的唯一,但你却是我一生的最爱!

先开IIS功能,再放网页。用IE试看一下!!!

就是啊,你可能没安装IIS,在控制面板的安装组件里面,需要XP安装盘