What is the process of nginx processing php requests?

爱喝马黛茶的安东尼
Release: 2023-02-23 12:24:02
Original
3993 people have browsed it

What is the process of nginx processing php requests?

HTTP transaction execution process

1. The client (browser) makes a request operation (enter the URL, Click the link and submit the form).

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

3. 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.

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

5. 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.

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

7. The client receives the response from the server and renders the processing result. If the response content requires requesting other static resources, access the required resources through CDN.

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

Related recommendations: "PHP Getting Started Tutorial"

Flowchart

What is the process of nginx processing php requests?

The above is the detailed content of What is the process of nginx processing php requests?. 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