在同一端口上运行多个Django应用程序

Introduction The focus of this article is to run multiple services on a single port, such as hosting two websites on port 80 and port 443. Although docker allows us to map the ports from...

本文介绍了如何在同一端口上运行多个服务,例如在80和443端口上托管两个网站。虽然Docker可以映射端口,但许多遗留应用程序不支持。系统有65536个端口,许多被保留。通过不同的网络适配器,可以在同一端口上运行多个Django应用程序而不冲突。使用0.0.0.0:<port>可以将服务暴露给所有网络适配器。

在同一端口上运行多个Django应用程序
原文英文,约600词,阅读约需2分钟。发表于:
阅读原文