Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在考虑是否应该为以下内容设置子域:api.mysite.com uploads.mysite.com
但我的问题是:我为什么要这样做,而不是将文件存储在某些文件夹中,如 /api 或 /uploads?
反馈?
使用子域,您可以将不同的 IP 地址分配给在不同机器上运行的不同主机。使用相同主机名下的 URL 路径是可能的,但更难。