搭建静态网站
——
基于
http
协议的静态网站
实验
1
:搭建一个
web
服务器,访问该服务器时显示
“hello world”
欢迎界面 。


实验
2
:建立两个基于
ip
地址访问的网站,要求如下
该网站
ip
地址的主机位为
100
,设置首页目录为
/www/ip/100
,网页内容为:
this is 100
。
该网站
ip
地址主机位为
200
,设置首页目录为
/www/ip/200
,网页内容为:
this is 200
。






进入


在虚拟机中
实验
3
:建立两个基于不同端口访问的网站,要求如下:
建立一个使用
web
服务器默认端口的网站,设置网站首页目录为
/www/port/80
,网页内容为:
the
port is 80
建立一个使用
1000
端口的网站,设置网站首页目录为
/www/port/10000
,网页内容为:
the port
is 1000
。



