What is a website? Pages, domains and hosting
People say “my website is down” when the domain has expired, when the server has stopped and when a single page returns an error. These are three different faults. A website is a set of related pages and resources published under one or more addresses. The domain name, the hosting server and the individual page are separate parts of it, and telling them apart is the first step in publishing or repairing a site.
Page, site, domain and URL are four different things
A web page is a single document or application view. A website links many of them through navigation and a shared structure. The domain is the part of the address that people type. It is registered separately from the hosting account and can point to different services. One server can host many websites, and one site can run on several servers.
A URL identifies one resource by adding a scheme, a host, a path and sometimes a query. The scheme HTTPS tells the browser to use an encrypted connection, and the path selects the page. A domain alone does not guarantee that any website is configured at its root.
What the browser does when you open a page
The browser asks DNS for an address associated with the host name. It connects to that server, negotiates TLS if the URL is HTTPS, and sends an HTTP request. The server returns HTML or application data. The page then usually loads CSS, JavaScript and images, from the same host or from others.
The address in DNS may not be your server
On many modern sites the domain points to a CDN or a reverse proxy, an intermediate server that receives visitors’ requests and passes them on. The encrypted connection ends at that edge, and the application runs elsewhere, on what is called the origin. The IP address you get from DNS is therefore not necessarily the origin server, and a fault may sit in either layer.
Three articles go deeper into these layers: CDN and edge caching, the TLS 1.3 handshake, and HTTP/3 and QUIC for the transport underneath.
Before you publish
Choose a clear page structure, a layout that works on phones and navigation that is accessible to everyone. Keep the content current and give pages descriptive titles. Protect the administration accounts.
Back up the files and the database in a way that suits your hosting setup. Holding the domain does not include a backup of anything.
Visitors cannot open the site: where to look first
DNS, hosting and the site itself can each cause an outage, and each can be healthy while another is broken. A DNS record can be correct while the service is stopped. A working server can still return an error for one URL. A valid certificate proves a secured connection to that name. It says nothing about whether the content on the site can be trusted.
Work through the layers in order and stop at the first one that fails:
- the exact URL, including the scheme and spelling;
- the DNS answer for the host name;
- whether the server is running;
- the HTTP response it returns;
- the TLS certificate.
Try another network or browser if the picture is unclear. When you ask the hosting provider for help, give the time and the exact error message.