---
title: "Discussion on \"如何让HTTP和HTTPs监听同一个端口？\" | Hashnode"
description: "Discussion on \"如何让HTTP和HTTPs监听同一个端口？\". HTTP监听80端口，HTTPS监听443端口，大家都习以为常，那么让HTTPS和HTTP监听同一个端口呢？"
url: "https://hashnode.com/posts/http-s-listen-same-port/6274e85250c6035691e2a21e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [如何让HTTP和HTTPs监听同一个端口？](https://foreverz.cn/http-s-listen-same-port?utm_source=hashnode&utm_medium=feed)

HTTP监听80端口，HTTPS监听443端口，大家都习以为常，那么让HTTPS和HTTP监听同一个端口呢？

May 6, 2022 · 2 min read · foreverz.cn  
Read the article

-   [#http](https://hashnode.com/tag/http)
-   [#https](https://hashnode.com/tag/https)
-   [#socket](https://hashnode.com/tag/socket)
-   [#network](https://hashnode.com/tag/network)
-   [#server](https://hashnode.com/tag/server)

## Written by

[MervynZhang](https://hashnode.com/@foreverzmyer)

@foreverzmyer

  
[View profile](https://hashnode.com/@foreverzmyer)

Learning and Share.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
