# 已有 Web 服务器时如何设置子域名，需要帮助

**URL:** <https://meta.discourse.org/t/need-some-assistance-for-setting-up-a-subdomain-when-there-is-already-a-webserver/107639>\
**Category:** Self-hosting\
**Created:** [2019 年1 月 27 日 09:45 UTC](https://meta.discourse.org/t/need-some-assistance-for-setting-up-a-subdomain-when-there-is-already-a-webserver/107639 "2019-01-27T09:45:20Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

作者： ![uwe\_keim](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/uwe_keim/32/326762_2.png) [@uwe\_keim](https://meta.discourse.org/u/uwe_keim)\
发布日期： [2019 年1 月 27 日 10:04 UTC](https://meta.discourse.org/t/need-some-assistance-for-setting-up-a-subdomain-when-there-is-already-a-webserver/107639/2 "2019-01-27T10:04:29Z")

</div>

Ports are completely out-of-scope in terms of DNS.

DNS maps names to IP addresses.

> **[Domain Name System](https://en.wikipedia.org/wiki/Domain_Name_System)**
>
> The Domain Name System (DNS) is a hierarchical and distributed name service that provides a naming system for computers, services, and other resources on the Internet or other Internet Protocol (IP) networks. It associates various information with domain names (identification strings) assigned to each of the associated entities. Most prominently, it translates readily memorized domain names to the numerical IP addresses needed for locating and identifying computer services and devices with the ...

Port associations is done on your server, not in the DNS.

---

_[View the full topic](https://meta.discourse.org/t/need-some-assistance-for-setting-up-a-subdomain-when-there-is-already-a-webserver/107639)._
