我的服务器是一台虚拟主机,配有三个网卡和三个ip。 我通过/etc/init.d/httpd start启动了web服务,在/var/www/html下添加了index.html页面,但是通过http://208.109.100.101却无法访问到index.html页面的内容,我觉得和多个ip配置有关,那位大虾能帮我分析一下?
下面是我ifconfig后的information
[root@ip-208-109-100-101]# /sbin/ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:101 errors:0 dropped:0 overruns:0 frame:0
TX packets:101 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:11208 (10.9 KiB) TX bytes:11208 (10.9 KiB)
venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:127.0.0.1 P-t-P:127.0.0.1 Bcast:0.0.0.0 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:25204 errors:0 dropped:0 overruns:0 frame:0
TX packets:24838 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:14286085 (13.6 MiB) TX bytes:2924690 (2.7 MiB)
venet0:0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:208.109.100.101 P-t-P:208.109.100.101 Bcast:208.109.100.101 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
venet0:1 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:208.109.100.102 P-t-P:208.109.100.102 Bcast:208.109.100.102 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
venet0:2 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:208.109.100.103 P-t-P:208.109.100.103 Bcast:208.109.100.103 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1


woshifeng 于 2013-04-07 17:17:27发表:
路过,支持一下。
于 2013-03-14 16:31:56发表:
ln -s 做一个软连接
markal_dong 于 2008-01-20 19:11:17发表:
这正是我迷惑的地方:apache httpd.conf中设定DocumentRoot "/var/www/html",但是http://208.109.100.101访问到的页面却是/var/www/vhost/index.html
kemen 于 2008-01-20 17:42:27发表:
???定apache的rootdocuments吧(忘了准?英文,就是?定?站的根目?位置的意思吧)
markal_dong 于 2008-01-20 09:06:40发表:
找到了http://208.109.100.101的默认页面,在/var/www/vhost下面,奇怪的是apache中默认的页面是/var/www/html,所以我很想知道,在那里配置能够让http://208.109.100.101直接跳到/var/www/vhost/下面的页面去呢?(我在apache的http.conf中没有发现任何/var/www/vhost的infomation)