How do Web Servers work?

How do Web Servers work?

Web Server

The term web server can refer to #hardware or #software or both of them working together.

  • On the #hardware side, a web server is a #computer that stores web server software and a website's files.
  • On the #software side, a web server includes several parts that #control how the users' access hosted files.
Function

A web server connects to the #Internet and supports physical #data interchange with other devices connected to the web and delivers the content of its hosted websites to the end user's device.

HTTP Server

At a minimum, the webserver #software is an #HTTP server.

An HTTP server is software that understands #URLs and HTTP (the protocol your browser uses to view webpages) and can be accessed through the domain names of the websites it stores.

Static & Dynamic
  • A #static web server consists of a computer with an HTTP server and it sends its hosted files as-is to your browser.
  • A #dynamic web server consists of a static web server plus extra software, such as an app server and a database, and it updates the hosted files before sending content to your browser.
Process

At the most basic level, whenever a browser needs a file, it requests the file via #HTTP.

When the request reaches the correct web server (hardware), the HTTP server (software) accepts the #request, finds the requested #document, and sends the #response back to the #browser.

Hosting files

A web server has to store all #HTML, #CSS, and #JS files, images, fonts, etc. Technically, you could host those files on your own computer, but it's more convenient to store them on a dedicated web server because a web server is more #available, it's always connected to the #Internet, and it can have the same #IP address all the time.

HTTP

A #protocol is a set of rules for #communication between two computers. A web server provides support for HTTP (HyperText Transfer Protocol).

HTTP specifies how to transfer hypertext (linked web documents) between two computers and provides clear rules for how a #client and #server communicate.


Source: #ProgrammerPlus

要查看或添加评论,请登录

Ahmed El-Agawy ????的更多文章

  • Learning How to Learn, "Interleaving"

    Learning How to Learn, "Interleaving"

    One significant mistake #students sometimes make in #learning is jumping into the water before they learn to swim. In…

  • 8 Types of Cyber Attacks

    8 Types of Cyber Attacks

    Malware Short for #malicious #software, this is a type of unwanted software that is installed without your consent…

  • Hackers Start New Campaign Using Coronavirus to Launch Emotet Trojan

    Hackers Start New Campaign Using Coronavirus to Launch Emotet Trojan

    Hackers have embarked on another campaign taking advantage of the global fear of the coronavirus to get targets open a…

  • Object-Oriented Programming (OOP)

    Object-Oriented Programming (OOP)

    What is it? Object-Oriented Programming (OOP) is a way of writing computer programs that are using the idea of…

  • Levels of English Language A, B, and C.

    Levels of English Language A, B, and C.

    A1 You can understand and use familiar everyday expressions and very basic phrases aimed at the satisfaction of needs…

  • 7 Phases of the Software Development Life Cycle (SDLC)

    7 Phases of the Software Development Life Cycle (SDLC)

    1. PLANNING #Planning focuses on the scope of the #project.

  • Top Modern JavaScript Books

    Top Modern JavaScript Books

    Eloquent JavaScript By: Marijin Haverbeke This is a book about #JavaScript, #programming, and the wonders of the…

    2 条评论
  • Top Programming Interview Questions

    Top Programming Interview Questions

    0. Arrays How do you remove duplicates from an array? How do you reverse an array? How do you find the 2nd largest…

  • Life Lessons From Programming

    Life Lessons From Programming

    Being Self-Driven is tough but vital! The sooner you learn that you're the only person who can solve your problems, the…

  • Key Mindsets of Expert Developers

    Key Mindsets of Expert Developers

    Master Debugging The ability to debug effectively has a disproportionately large impact on a programmer's ability to…

社区洞察

其他会员也浏览了