我在 Windows 7 主机上运行带有 Debian 的 Oracle VirtualBox 作为来宾操作系统。我已经安装了 Apache 并在 VM 中指定了以下两个网络适配器:
我在 Debian VM 上的接口网络设置是:
auto lo
iface lo inet loopback
allow-hotplug eth0
iface eth0 inet dhcp
auto eth1
iface eth1 inet static
address 192.168.1.110
netmask 255.255.255.0
Run Code Online (Sandbox Code Playgroud)
通过ping
来宾和主机之间的测试,这一切似乎都运行良好。但是,当我尝试在 Web 浏览器中浏览我的来宾实例时,http://192.168.1.110
我不断收到 404 消息。任何帮助,将不胜感激。
考虑到 ifconfig 会导致我的帮助,我将在此处也包括这些内容:
eth0 Link encap:Ethernet HWaddr 08:00:27:7a:1a:35
inet addr:192.168.1.106 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe7a:1a35/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:252 errors:0 dropped:0 overruns:0 frame:0 …
Run Code Online (Sandbox Code Playgroud)