Web Hosting

How websites get a home online, from shared hosting to VPS and the software behind each request.

3 min read 4 lesson sections
  • #domains
  • #dns
  • #shared hosting
  • #managed hosting
  • #deployment
Web Hosting: How websites get a home online, from shared hosting to VPS and the software behind each request.
Concept map

Web hosting is a service that keeps a website’s files or application on an internet-connected server and makes it available to visitors. A domain name is the memorable address; DNS points that name to the hosting service. Buying a domain and choosing a host are related but separate decisions.

Picture the journey: A visitor enters a domain, DNS finds the server, and that server returns a page—or passes the request to an application that builds one.

What happens when someone opens a website?

  1. A browser asks DNS for the address associated with the domain.
  2. The browser connects to the hosting server using HTTP or HTTPS.
  3. A web server such as Apache HTTP Server, Nginx, or Microsoft IIS receives the request.
  4. The web server returns a static file or forwards dynamic work to an application runtime such as Payara Server.
  5. The response travels back to the browser. A database may be involved if the application needs stored data.

The exact arrangement varies. A small site might be served directly by one web server; a larger system may use several application and storage services.

Common hosting choices

  • Shared hosting: many customer sites share one managed server. It is often an affordable starting point, with less control over system settings.
  • VPS hosting: a virtual server gives more control over the operating system and installed software. You take on more maintenance, updates, and security work.
  • Dedicated hosting: one customer rents a physical server, gaining more predictable access to its resources and more operational responsibility.
  • Managed or platform hosting: a provider handles more of the operating system or application platform, trading some flexibility for simpler operations.

Compare the included backup and restore options, support, resource limits, renewal prices, security features, and migration process—not just the first-month price.

Where do the tools fit?

cPanel is a control panel that some hosting providers use to manage sites, email, files, and databases. It is not itself a hosting service or a web server. XAMPP bundles a local development stack so you can practice on your own computer; it is not a production hosting plan. VPS describes a kind of server you can rent, while Web Hosting describes the service of making a site available.

These are different layers, not competing versions of one product: a hosting plan may provide a control panel, run a web server, and forward requests to an application server. Learning which layer a tool belongs to makes it easier to choose and troubleshoot.

Choose a first home for a site

For a simple static site, start with a platform that serves files and provides HTTPS. For an application, check its runtime and database needs before selecting a plan. If your goal is to learn server administration, a small VPS is a useful lab; if your goal is to publish a site with minimal maintenance, managed hosting may be a better fit.