parm530
8/16/2019 - 3:21 PM

Web Server

Web Servers

  • A computer that hosts one or more websites on the internet.
    • All files belonging to the sites are stored in that computer.
    • Will send a web page, by request, to the users browser.
    • Consists of hardware and software
  • The hardware is what stores all the sites resources (html, videos, img, stylesheets)
  • The software contains parts that control how web users access the hosted files:
    • Contain an HTTP server: understands URL's and uses a protocol that allows your browser to view web pages.
  • When a user enters the domain name in to address bar of the browser:
    • The browser makes an HTTP request to the web server (hardware)
    • The software (HTTP server) accepts the request, finds the correct resource and sends the data back to the user.
  • To publish a site, you will need either a static web server or a dynamic web server
    • A static web server sends files as they are
    • A dynamic web server consists of a static web server and other softwares (most commonly an application server and database).
      • The application server updates the requested file, pulling info from a database in order to send the requested resource.