Home > Backend Development > PHP Problem > nginx to php execution process

nginx to php execution process

藏色散人
Release: 2023-02-28 12:46:01
Original
3560 people have browsed it

nginx to php execution process

nginx to php execution flow

nginx and php processing user request response flow chart

A brief summary of the process from when a user requests a URL (HTTP request) from a browser to when the server processes the request and returns data. If there are any errors or incorrect expressions, please feel free to discuss and exchange them.

HTTP transaction execution process

● The client (browser) makes the request operation (enter the URL, click the link, submit the form).

● The client resolves the domain name and requests the IP address from the set DNS server.

● The client uses the three-way handshake to establish a TCP/IP connection with the server based on the IP address returned by the DNS server.

● After the TCP/IP connection is successful, the client sends an HTTP request to the server.

● The server-side Web Server will determine the resource type of the HTTP request and perform content distribution processing; if the requested resource is a PHP file, the server-side software will start the corresponding CGI program for processing and return the processing result.

● The server responds to the client with the processing results of the Web Server

● The client receives the response from the server and renders the processing results. If the response content requires requesting other static resources, it is accelerated through CDN Access needed resources.

● The client presents the rendered view and disconnects the TCP/IP connection

Recommended: "PHP Tutorial"

The above is the detailed content of nginx to php execution process. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template