Friday, May 24, 2013


How Apache Works

For example, typing in www.google.com into your browser’s address field might send the following request to the server at that IP address:
-        GET / HTTP/1.1
-        Host: www.google.com
First, there is the method (GET), the URI, which specifies which page to be retrieved or which program to be run (root directory /), and the HTTP version (HTTP 1.1).

If the page is found successful, the server returns a 200 status code, response headers, along with the requested data. The response header like the following:
-        HTTP/1.1 200 OK
-        Date: Sun, 10 Jun 2012 19:19:21 GMT
-        Server: Apache
-        Expires: Wed, 11 Jan 1984 05:00:00 GMT
-        Cache-Control: no-cache, must-revalidate, max-age=0
-        Pragma: no-cache
-        Last-Modified: Sun, 10 Jun 2012 19:19:21 GMT
-        Vary: Accept-Encoding,User-Agent
-        Content-Type: text/html; charset=UTF-8
-        Content-Length: 7560 

No comments:

Post a Comment