【问题标题】:How does this URL has something before www?这个 URL 怎么在 www 之前有东西?
【发布时间】:2013-02-15 03:12:19
【问题描述】:

我以前从未见过!效果如何?我知道 ICANN 现在允许自定义域名,但在 www 之前!我尝试在 welcome 之前添加另一个 www,它返回 404。

【问题讨论】:

  • 请在此处复制实际网址 - 否则我们会将您的欺骗网址视为潜在的垃圾邮件。
  • 你的意思是 www1.domain.com 之类的?
  • 考虑到这个问题,具有讽刺意味的是,OP 的图像链接位于 i.stack.imgur.com。

标签: image dns icann


【解决方案1】:

www 并不是什么特别的东西。 www 或 www1 或welcome 之间的服务器没有区别。有些网站根本没有www。 实际上 www 是子域,您可以创建两个不同的网站:一个在 www 上,另一个没有。

【讨论】:

  • 这正是我不知道的。我认为如果没有“第一个”域必须是“www”,您就不可能拥有一个全球 Web 服务器。但在阅读了 wiki 文章后发现父域是右边的域,所以现在一切都有意义了。
【解决方案2】:

RFC 1035 定义了下面的语法。另外,您可能想查看this wikipedia article

<domain> ::= <subdomain> | " "

<subdomain> ::= <label> | <subdomain> "." <label>

<label> ::= <letter> [ [ <ldh-str> ] <let-dig> ]

<ldh-str> ::= <let-dig-hyp> | <let-dig-hyp> <ldh-str>

<let-dig-hyp> ::= <let-dig> | "-"

<let-dig> ::= <letter> | <digit>

<letter> ::= any one of the 52 alphabetic characters A through Z in
upper case and a through z in lower case

<digit> ::= any one of the ten digits 0 through 9

Note that while upper and lower case letters are allowed in domain
names, no significance is attached to the case.  That is, two names with
the same spelling but different case are to be treated as if identical.

The labels must follow the rules for ARPANET host names.  They must
start with a letter, end with a letter or digit, and have as interior
characters only letters, digits, and hyphen.  There are also some
restrictions on the length.  Labels must be 63 characters or less.

For example, the following strings identify hosts in the Internet:

A.ISI.EDU XX.LCS.MIT.EDU SRI-NIC.ARPA

【讨论】:

    【解决方案3】:

    这是第 4 级子域,其中 www.example.com 的 www 是第 3 级,因为 example 是 .com 的子域。

    因此,子域可以向下执行 127 级,这样 my.desktop.www.example.com 将是一个有效的 URL,在这种情况下,中间是 www。

    查看类似 traceRT 之类的东西,您可能会看到类似 dsl123.sfv.la.example.com(或其他任何东西)之类的东西,重点是,有很多多级子域的情况,有或没有 WWW - 另一个例子可能是 mail.phx.example.com,一个公司凤凰办公室的邮件服务器。

    【讨论】:

      【解决方案4】:

      人们可以将他们喜欢的任何东西放在子域中,然后告诉服务器“将example.com.au视为www.example.com.au

      因此你可以有一个“真实”的 URL,例如:

      www.abc.www.example.com
      

      然后告诉服务器允许:

      abc.www.example.com
      

      可能就是你所看到的......

      【讨论】:

      • 如果我能访问 www.welcome.www.be[...],我猜。
      • 我在我的问题中说它不起作用,但正如维基百科的文章告诉我的那样,“www”并不是绝对必要的,也不需要排在第一位。 (=
      • 只有在服务器开启的情况下,您才能访问“www”版本...大多数默认情况下会这样做,但他们可能并没有这样做,只是为了对他们的域感到时髦。 ..
      猜你喜欢
      • 1970-01-01
      • 2012-09-27
      • 2020-06-21
      • 1970-01-01
      • 1970-01-01
      • 2021-02-02
      • 1970-01-01
      • 1970-01-01
      • 2011-04-27
      相关资源
      最近更新 更多