echo string
Nginx1.0.10 https://github.com/nginx/nginx/releases/tag/release-1.0.10
OS : CentOS Linux release 7.2.1511 (Core)
typedef struct {
ngx_str_t ed; //该结构体定义在这里 https://github.com/nginx/nginx/blob/master/src/core/ngx_string.h
} ngx_http_echo_loc_conf_t;
- Define the type of ngx_http_module_t structure variables
- Initialize a configuration structure
- Will the father block configuration information incorporated into this structure Implement the configuration of inheritance
ngx_addon_name=ngx_http_echo_module
HTTP_MODULES="$HTTP_MODULES ngx_http_echo_module"
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/src/ngx_http_echo_module.c"
./configure --prefix=/usr/local/nginx/ --add-module=/root/ngx_dev && make && make install