Nginx module development experiment

working principle:

       After receiving a nginx http request, will find by looking for the configuration file, and find the corresponding address mapping in the configuration file, the address is also called location block, while the location of the configuration file starts

Complete address of the corresponding block distribution work;

       And a location in the instruction involves a handle module and a plurality of filter modules; Handler is responsible for the completion of the request and response processing results , and the filter response is responsible for the contents process.

( The first and still discrepancies, or that this did not resolve http address, such as split request headers, message header, message body reads the like, may also address the role responsible for processing and distribution,

Without splitting operation message header, and then later learned to look back and analyze the first overall; )

Guess you like

Origin www.cnblogs.com/shijinglu2018/p/12060316.html