如果一个没有端口80的网站,其他客户可以照常访问此网站吗?
我知道端口80是一个知名港口之一,但是我感到困惑的是,如果我在其他端口以外的其他端口上构建网站服务器进程,那么当其他客户端尝试访问此网站服务器时,它是否有效?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
我知道端口80是一个知名港口之一,但是我感到困惑的是,如果我在其他端口以外的其他端口上构建网站服务器进程,那么当其他客户端尝试访问此网站服务器时,它是否有效?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
端口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)