如果一个没有端口80的网站,其他客户可以照常访问此网站吗?

发布于 2025-01-27 06:22:22 字数 86 浏览 1 评论 0 原文

我知道端口80是一个知名港口之一,但是我感到困惑的是,如果我在其他端口以外的其他端口上构建网站服务器进程,那么当其他客户端尝试访问此网站服务器时,它是否有效?

I know port 80 is one of well-know-port, but I am confused that if I build the website server process on other port except of 80, would it works when other client try to access this website server?

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

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

发布评论

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

评论(1

李不 2025-02-03 06:22:22

端口80是HTTP的默认端口。因此,连接到http://域本质上将您发送到http://域:80(默认情况下)。

端口443是HTTPS的默认值,其工作方式与上面的HTTP相同。

任何其他端口都需要您执行 url:port 要连接到。肯定有一些方法可以解决这个问题(例如转发),但我不认为这需要它,我认为这会引起比什么都多的问题。

您还需要确保新端口是打开,转发并可以接收连接的。

(前2段的来源

Port 80 is the default port for http. So connecting to http://domain would in essence send you to http://domain:80 (by default).

Port 443 is the default for https and would work the same way as stated for http above.

Any other port would require the you to do url:port to connect to. There are definitely ways to get around this (like forwarding) but I don't see the need for it and I think it causes more issues than anything.

You would also need to make sure that the new port is open, forwarded and can receive connections.

(Source for the first 2 paragraphs https://developer.mozilla.org/en-US/docs/Glossary/Port)

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