Internet Explorer 无法在 Samba Share 中显示 index.html

Internet Explorer 无法在 Samba Share 中显示 index.html

我有安装了 Samba 和 Apache 服务器的虚拟 Centos 机箱。我在 Samba 中创建了共享文件夹,并且能够通过我的虚拟 Windows Server '12 映射该文件夹。我能够通过 Windows Server 中的 Windows 资源管理器查看和编辑 Samba 共享文件夹中的文件。

但是,我无法通过 Internet Explorer 输入 http://< Apache 服务器的网络 BIOS 名称 > 来显示 index.html,也无法通过 http: 显示 index.html // < ip address of Apache Server >。为什么 Windows Explorer 可以工作,而 Internet Explorer 不行?
如果我在地址栏中输入 IE,\\ < net bios name of Apache >它会打开文件夹,但是当我使用http : // < net bios name of Apache >协议时,它不会显示 index.html 页面。

我需要做什么才能让它工作?谢谢

答案1

因为 Samba 正在运行而 Apache 没有运行。Samba 不提供 http 服务,在这种情况下,这是 Apache 的工作。您需要检查您的 Apache 设置。它正在运行吗?文档根目录指向哪里?

相关内容