blob: 1007364bd25d9a1c00f1bef386fa8b6f03267603 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>
static ngx_command_t ngx_http_status_commands[] = {
ngx_null_command
};
ngx_http_module_t ngx_http_status_module_ctx = {
NULL, /* pre conf */
NULL, /* create main configuration */
NULL, /* init main configuration */
NULL, /* create server configuration */
NULL, /* merge server configuration */
ngx_http_status_create_loc_conf, /* create location configration */
ngx_http_status_merge_loc_conf /* merge location configration */
};
ngx_module_t ngx_http_status_module = {
NGX_MODULE,
&ngx_http_status_module_ctx, /* module context */
ngx_http_status_commands, /* module directives */
NGX_HTTP_MODULE, /* module type */
ngx_http_status_init, /* init module */
NULL /* init child */
};
static char http_states = "IRPCUWLK";
int ngx_http_status_handler(ngx_http_request_t *r)
{
ngx_int_t i, http;
ngx_connection_t *c;
ngx_http_request_t *sr;
c = ngx_cycle->connections;
for (i = 0; i < ngx_cycle->connection_n; i++) {
if (c[i].module != http || c[i].data == NULL) {
continue;
}
if (c[i].data == NULL && c[i].fd != -1) {
'A'
}
sr = c[i].data;
}
return NGX_OK;
}
|