WhichWebHosting home

HomeGuidesHosting typesWhat is web hosting?

What is web hosting?

Published

Share

With a web hosting service, you upload your website's files to your web server.1, source 1 The web server has to store those files, namely all HTML documents and their related assets, including images, CSS stylesheets, JavaScript files, fonts and video.1, source 1 When a browser needs a file hosted on a web server, it requests the file via HTTP, and the HTTP server accepts the request, finds the requested document and sends it back to the browser, also through HTTP.1, source 1

What web hosting means

A server is software or hardware offering a service to a client.2, source 2 A hardware server is a shared computer on a network, usually powerful and housed in a data center.2, source 2 A software server, often running on a hardware server, is a program that provides services to client programs or a user interface to human clients.2, source 2 A web server can refer to hardware, to software, or to both working together.1, source 1

On the hardware side, a web server is a computer that stores web server software and a website's component files.1, source 1 An HTTP server is software that understands URLs (web addresses) and HTTP, the protocol a browser uses to view webpages.1, source 1 A dedicated web server is typically maintained by a third party.1, source 1

The Internet is the backbone of the Web, the technical infrastructure that makes the Web possible.3, source 3 The Internet is an infrastructure, whereas the Web is a service built on top of it.3, source 3

How a website is served to a visitor

A server can appear as a single machine while actually being a collection of servers sharing the load.4, source 4 Before a client and server can exchange an HTTP request and response, they must establish a TCP connection, which requires several round-trips.4, source 4 When requesting a file via HTTP, clients must provide the file's URL.1, source 1 To display a web page, the browser sends an original request to fetch the HTML document that represents the page.4, source 4

On a web server, the HTTP server is responsible for processing and answering incoming requests.1, source 1 If the requested URL matches an existing file, the web server sends the file content back to the browser; if not, the server checks whether it should generate a file dynamically for the request.1, source 1 The browser then parses the HTML file and makes additional requests for scripts, layout information (CSS) and sub-resources such as images and videos.4, source 4

If the requested URL does not match an existing file and no file can be generated dynamically, the web server returns an error message to the browser, most commonly 404 Not Found.1, source 1 HTTP is a textual protocol.1, source 1 Its core is stateless, but HTTP cookies allow the use of stateful sessions.4, source 4

Static and dynamic sites

A static web server consists of a computer (hardware) with an HTTP server (software).1, source 1 A static web server is called static because it sends its hosted files as-is to the browser.1, source 1 Relying on HTTP alone, a server cannot remember a password you typed or your progress on an incomplete transaction, so an application server is needed for tasks like that.1, source 1 A dynamic web server consists of a static web server plus extra software, most commonly an application server and a database.1, source 1

The term dynamic means that the server processes the content or even generates it on the fly from a database.1, source 1 A dynamic web server is called dynamic because the application server updates the hosted files before sending content to the browser via the HTTP server.1, source 1 Sites with thousands of webpages are typically composed of only a few HTML templates and a giant database, rather than thousands of static HTML documents.1, source 1

Some application servers are designed to host and manage blogs, wikis or e-commerce solutions, while others are more generic.1, source 1 Most website developers will not need to create an application server from scratch, because there are many off-the-shelf solutions, many of which are highly configurable.1, source 1 A dynamic approach provides more flexibility than a static one, but its technical stack is more complex, which makes building the website dramatically more challenging.1, source 1

Why not host a site on your own computer

Technically, you could host a website's files on your own computer, but it is far more convenient to store them on a dedicated web server.1, source 1 A dedicated web server is typically more available (up and running) than a home computer.1, source 1 Excluding downtime and system troubles, a dedicated web server is always connected to the Internet.1, source 1

A dedicated web server can have the same IP address all the time, which is known as a dedicated IP address.1, source 1 Not all ISPs provide a fixed IP address for home lines.1, source 1 Finding a good hosting provider is a key part of building your website.1, source 1 When choosing a hosting provider, examine the various services companies offer.1, source 1

How domain names connect to hosting

An HTTP server can be accessed through the domain names of the websites it stores, and it delivers the content of those hosted websites to the visitor's device.1, source 1 Domain names provide a human-readable address for any web server available on the Internet.5, source 5 A domain name is made of one or more parts separated by dots and read from right to left.5, source 5 For a domain you control, you can create subdomains with different content located at each.5, source 5

You pay for the right to use a domain name for one or more years.5, source 5 Registrars use domain name registries to keep track of technical and administrative information connecting you to your domain name.5, source 5 DNS (Domain Name System) is a hierarchical and decentralized naming system for Internet-connected resources.6, source 6 The most prominent function of DNS is the translation of human-friendly domain names to numeric IP addresses, a process known as a DNS lookup.6, source 6

An IP address is a number used to address each device on an IP network uniquely.7, source 7 IP addresses are hard to remember and might change over time.5, source 5 A DNS server tells a computer which IP address matches each registered domain name.5, source 5

Each DNS server that knows about a given domain stores the information for some time before it is automatically invalidated and then refreshed, so it takes some time for DNS servers to get up-to-date information.5, source 5 Once a registrar has registered a domain name, all DNS servers receive the DNS information within a few hours.5, source 5

Shared and managed hosting

Several server software instances can be hosted on the same machine.4, source 4 With HTTP/1.1 and the Host header, several server software instances on one machine may even share the same IP address.4, source 4 DreamHost Web Hosting is shared hosting, where several sites share a server.8, source 8

At IONOS, Web Hosting plans do not offer root access; IONOS manages the server configuration for you.9, source 9 These Web Hosting plans use Linux container technology to create a private, isolated environment for your website.9, source 9 IONOS WordPress plans are Linux-based, containerized managed web hosting.10, source 10

On DreamHost's DreamPress, SSH gives site-user access; DreamHost manages the server and root access is not included.11, source 11 HostGator reseller hosting is white-label hosting: you sell HostGator's products as your own hosting company.12, source 12 This reseller hosting includes WHM, billing software and the cPanel control panel.12, source 12

VPS, dedicated and cloud servers

IONOS dedicated, virtual private and cloud hosting servers give you root access.9, source 9 Every HostGator self-managed VPS hosting plan includes full root access over SSH.13, source 13 HostGator self-managed VPS plans do not include cPanel or 24/7 priority support.13, source 13 These self-managed VPS plans come with a dedicated IP address and DDoS protection.13, source 13

Every DreamHost Stack VPS plan includes full root access and unmetered bandwidth.14, source 14 On Stack VPS, you manage the applications and the software stack.14, source 14 Stack VPS also lets you install any app in DreamHost's library straight from your dashboard.14, source 14 DreamHost Managed VPS includes SSH access but not root or sudo.15, source 15

IONOS VPS plans come with the Cloud Panel, a central program for administering all server functions.16, source 16 Managing access, configuring firewalls and following best practices for effective backups are self-service on IONOS VPS plans.16, source 16 DreamHost dedicated servers include full root access, with DreamHost handling security, patching and monitoring.17, source 17 HostGator dedicated plans include full root access.18, source 18

What hosting plans include

Email is another service built on top of the Internet.3, source 3 All four DreamHost Managed VPS plans (Business, Professional, Enterprise and Premier) include email at your domain, SSL certificates and daily automated backups.15, source 15 The Transport Layer Security protocol provides assurances about the confidentiality, authenticity and integrity of communications.19, source 19 HTTPS is an encrypted version of the HTTP protocol that uses TLS to encrypt all communication between a client and a server.20, source 20

Unencrypted data sent over the web can be intercepted by third parties, who can access and modify it.19, source 19 You should set up your server software to use a secure configuration that enforces the use of HTTPS.19, source 19 DreamHost offers free Let's Encrypt SSL/TLS certificates.21, source 21 All IONOS Web Hosting plans include an SSL certificate.9, source 9

On DreamHost Web Hosting, a daily backup saves a copy of the site, and you can restore one from the control panel.8, source 8 IONOS WordPress plans create backups daily and keep them for up to 7 days in the control panel.10, source 10 DreamHost Web Hosting sites are managed in the DreamHost panel.8, source 8

IONOS's Website Migration Service has its experts move a site and all its content to IONOS while the current site stays online.22, source 22 On DreamHost Web Hosting, WordPress sites can be moved with a free automated transfer tool; for other sites you move the site or pay DreamHost's experts an additional fee.8, source 8 With DreamHost's migration plugin, WordPress.com sites, sites built on other website builders and local development sites need a different approach, and subdirectory installs and moves from another DreamHost account need separate guidance.23, source 23 For a site that is not WordPress, DreamHost's Pro Services team reviews the site and quotes the move.23, source 23

Common questions

What is web hosting?

Web hosting keeps a website's files on an Internet-connected web server. The server holds HTML documents, images and stylesheets. A dedicated web server is typically maintained by a third party.

What does a web server do?

A web server processes and answers incoming requests from a client. Its HTTP server accepts a browser's request, finds the requested document and sends it back. When the requested URL matches an existing file, the server sends its content back; otherwise, it checks whether it should generate a file dynamically.

Is shared hosting a type of web hosting?

Yes. DreamHost's Web Hosting is shared hosting, where several sites share a server.

What does a domain name do for hosting?

It gives any web server on the Internet a human-readable address. An HTTP server can be accessed through the domain names of the websites it stores, delivering the content of those hosted websites to a visitor's device. You pay for the right to use a domain name for one or more years.

Can I host a website on my own computer?

Yes. Technically, you could host a website's files on your own computer. However, it is far more convenient to store them on a dedicated web server. A dedicated web server is typically more available than a home computer, and not all ISPs provide a fixed IP address for home lines.

What is the difference between a static and a dynamic website?

A static web server sends its hosted files as-is to the browser. A dynamic web server processes the content or generates it on the fly from a database. An application server updates the hosted files before sending content to the browser via the HTTP server.

Sources

Every fact on this page comes from one of these, checked before it goes live.

More guides

Hosting types

What is shared hosting?

On shared hosting, many accounts share one server's resources, and you're limited to the software your host provides or supports.

· Mateo Cardenas

Hosting types

How to choose a VPS provider

To choose a VPS provider, fit the plan to your workload, pick shared or dedicated CPU, decide who runs the server, and check location, backups and support.

· Mateo Cardenas

Hosting types

Web hosting vs WordPress hosting

WordPress hosting is web hosting that runs WordPress. Most web hosts can run it; with managed WordPress hosting, the provider manages the software.

· Mateo Cardenas