如何在 Google Chrome 中启用自定义 URL?

发布于 2024-09-14 07:42:32 字数 212 浏览 1 评论 0原文

对于本地开发,我正在运行带有虚拟主机的本地网络服务器来管理需要自己的 URL 的多个网络项目。通常我使用像 myproject.com.local 这样的 URL,而真正的项目将位于 myproject.com。在 Safari、IE 或 Firefox 中一切正常。但是 Google Chrome 会抛出 404。据我所知,他们有某种智能地址栏。有没有可能让它适用于所有域?

此致, 贝恩德

for local development I'm running a local webserver with virtual hosts to manage multiple webprojects requiring their own URL. Normally I use URLs like myproject.com.local and the real project will be located at myproject.com. Everything works fine in Safari, IE or Firefox. But Google Chrome throws a 404. As far as I know they have some kind of intelligent address bar. Is there any possibility to get it working with all domains?

Best Regards,
Bernd

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

沐歌 2024-09-21 07:42:32

我认为它应该适用于所有域,只要您的工作站 DNS 可以将名称解析为 IP 地址。另外,请检查 Chrome 中是否有任何代理设置,有时选中“绕过本地域代理”复选框(位于设置中的某处)会有所帮助。

另请确保当您请求非标准域或端口号时,将 http:// 放在您的网址前面。

祝你好运。

I think it should be working with all domains, as long as your workstations DNS can resolve the name to an ip-address. Also, check if you have any proxy settings in Chrome, sometimes it helps to check the 'Bypass proxy for local domains'-checkbox (somewhere in the settings).

Also make sure that when you request non-standard domains or port-numbers to put http:// in front of your url.

Good luck.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文