Added the answer for the question: 'How Web Servers Works' (#195)
* Added the answer for the question: 'How Web Servers Works' * updated the document Added more relevant information about web servers. * Added the answer and also specifies the source * complete required changes
This commit is contained in:
parent
019d31986e
commit
1364abab58
@ -252,6 +252,33 @@ Reliability, when used in DevOps context, is the ability of a system to recover
|
||||
|
||||
<details>
|
||||
<summary>How a web server works?</summary><br><b>
|
||||
<a href="https://developer.mozilla.org/en-US/docs/Learn/Common_questions/What_is_a_web_server" title="Click here to redirect to MDN official page" style="background-color:#FFFFFF;color:#000000;text-decoration:none">According to MDN Web Docs -</a>
|
||||
|
||||
We can understand web servers using two view points, which is:
|
||||
|
||||
(i) Hardware (ii) Software
|
||||
|
||||
(i) A web server is nothing but a remote computer which stores website's component files(HTML,CSS and Javascript files) and web server's software.A web server connects to
|
||||
the Internet and supports physical data interchange with other devices connected to the web.
|
||||
|
||||
(ii) On the software side, a web server includes several parts that control how web users access hosted files. At a minimum, this is an HTTP server. An HTTP server is software that understands URLs (web addresses) and HTTP (the protocol your browser uses to view webpages). An HTTP server can be accessed through the domain names of the websites it stores, and it delivers the content of these hosted websites to the end user's device.
|
||||
|
||||
## How communication between web server and web browsers established:
|
||||
|
||||
Whenever a browser needs a file that is hosted on a web server, the browser requests the page from the web server and the web server responds with that page.
|
||||
This communcation between web browser and web server happens in the following ways:
|
||||
|
||||
(1) User enters the domain name in the browser,and the browser then search for the IP address of the entered name. It can be done in 2 ways-
|
||||
|
||||
-By searching in its cache.
|
||||
-By requesting one or more DNS (Domain Name System) Servers.
|
||||
|
||||
(2) After knowing the IP Address, the browser requests the file via HTTP and the request reaches the correct (hardware) web server.
|
||||
|
||||
(3) The (software) HTTP server accepts the request, finds the requested document, and sends it back to the browser, also through HTTP. (If the server doesn't find the requested document, it returns a 404 response instead.)
|
||||
|
||||
(4) The Browser finally gets the webpages and displays it, or displays the error message.
|
||||
|
||||
</b></details>
|
||||
|
||||
<details>
|
||||
|
Loading…
Reference in New Issue
Block a user