【问题标题】:DNS: How to redirect a domain to a different domain's subdomain?DNS:如何将域重定向到不同域的子域?
【发布时间】:2012-11-12 01:26:45
【问题描述】:

我想使用subdomain.example.com 作为example2.com 的服务器。这可能吗?

现在我有这个,但它不工作:

   --------------------------------------------------------
   hostname                | priority | value        | ttl
   --------------------------------------------------------
   subdomain.example.com   | A        | ip_address   | 3600
   subdomain               | CNAME    | example.com  | 3600
   --------------------------------------------------------

【问题讨论】:

    标签: http redirect dns subdomain


    【解决方案1】:

    是的。使其指向 DNS 中的相同 IP,并将主机名添加到 Web 服务器配置中。

    【讨论】:

    • +1,但如果 Web 服务器使用虚拟主机(和/或提供的内容具有硬编码的绝对 URL),则可能需要进行更多设置。
    • and add the hostname to the web server configuration 是什么意思?
    • @CodeCaster 我更新了我的问题,你认为我的 DNS 配置好吗?它不工作,但可能是因为我的服务器没有配置好。
    • @Adam 你明白了吗? :)
    猜你喜欢
    • 2012-04-11
    • 2011-05-22
    • 2014-04-24
    • 2018-02-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-06-29
    • 2021-09-09
    相关资源
    最近更新 更多