html - 使用域名而不是本地网络中的本地 IP 地址时,无法访问 XAMPP 托管的本地 HTML 网站
问题描述
我在局域网中使用 XAMPP 托管了一个 HTML 网页;http://IP address:port
使用自定义域名时,我可以从同一本地网络中的其他计算机访问该网页,但无法访问该网页。
我的主机文件看起来像这样。
192.168.1.24:90 cohab.com
我的 httpd-vhosts.config 如下所示。
<VirtualHost 192.168.1.24:90>
ServerAdmin webmaster@www.cohab.com
ServerName www.cohab.com
ServerAlias cohab.com
DocumentRoot "C:/xampp/htdocs/cohab"
</VirtualHost>
我的 HTML 文件存在于C:/xampp/htdocs/cohab directory
. 我哪里错了?
解决方案
推荐阅读
- python - 用另一列的值填充组中最后一项的一列
- java - META-INF/versions/9/* 和 Elasticsearch 6.2.2+ 与 Jetty 9.2 上的字节码扫描错误
- c# - 我可以使用 AsQueryable 来提高此搜索的性能吗?
- python - 网页抓取时如何移入和移出网页
- r - 将 purrr::map 应用于嵌套列表的元素序列
- r - 如何根据其他列值将列值转换为行
- c++ - 没有可用于 std::unique_ptr 的适当默认构造函数
- html - 我可以在底部创建另一个宽度并在顶部创建另一个宽度的背景吗
- angular - DOMException: Failed to execute 'define' on 'CustomElementRegistry': "cfheader" is not a valid custom element name
- import - 2sxc 应用程序导入失败 (404)