Parts of a URL: host, port, path

Unfortunately the other answers in this question can be slightly misleading. Referring landfill.bugzilla.org to as host is correct in this specific example, but if the port was other than 443 then it would be incorrect.

https:// by default uses port 443, so you may omit it in the URL, otherwise it would of looked like this https://landfill.bugzilla.org:443/bugzilla-tip:

  • Protocol: https://
  • Hostname: landfill.bugzilla.org
  • Port: 443
  • Host: landfill.bugzilla.org or landfill.bugzilla.org:443 (depending, read below)
  • Hostport: landfill.bugzilla.org:443
  • Path: bugzilla-tip

host and hostname are not the same in all instances. For example in JavaScript location.host will return www.geeksforgeeks.org:8080 while location.hostname returns www.geeksforgeeks.org. So sometimes it's only the "same" when the default ports on the protocol are being used depending.

More info: https://www.rfc-editor.org/rfc/rfc1738

Have a look at this: http://bl.ocks.org/abernier/3070589


Host: landfill.bugzilla.org

Port: 443 (default)

Path: bugzilla-tip

https://www.rfc-editor.org/rfc/rfc1738


  • Host: landfill.bugzilla.org
  • Port: 443 (HTTPS)
  • Path: /bugzilla-tip

for more details please read this