nginx_conf_ctx_new
2016-08-22 19:04:58 8 举报
AI智能生成
登录查看完整内容
ngx_conf_ctx
作者其他创作
大纲/内容
nginx_conf_ctx
0. ngx_core_conf_t
daemon
1
master
master_process
timer_resolution
0
worker_processes
debug_points
rlimit_nofile
worker_rlimit_nofile
rlimit_core
worker_rlimit_core
priority
worker_priority
cpu_affinity_auto
cpu_affinity_n
cpu_affinity
username
user
pw_uid
group
gr_gid
working_directory
lock_file
logs/nginx.lock
pid
logs/nginx.pid
oldpid
env
environment
3. events_array
ngx_event_conf_t
connections
worker_connections
512
use
ngx_epoll_module->ctx_index
name
ngx_epoll_module->name
multi_accept
accept_mutex
accept_mutex_delay
500
debug_connection
ngx_epoll_conf_t
events
epoll_events
aio_requests
worker_aio_requests
32
6. ngx_http_conf_ctx_t
0. ngx_http_core_module
ngx_http_core_preconfiguration
ngx_http_core_main_conf_t
初始化http头标签
ngx_http_core_postconfiguration
再看
ngx_http_core_create_main_conf
ngx_http_core_init_main_conf
server_names_hash_max_size=512
server_names_hash_bucket_size=ngx_cacheline_size
ngx_align
variables_hash_max_size=1024
variables_hash_bucket_size=64
ngx_http_core_create_srv_conf
ngx_http_core_srv_conf_t
ngx_http_core_merge_srv_conf
connection_pool_size=64 * sizeof(void *)
request_pool_size=4096
client_header_timeout=60000
client_header_buffer_size=1024
ignore_invalid_headers=1
merge_slashes=1
underscores_in_headers=0
ngx_http_core_create_loc_conf
ngx_http_core_loc_conf_t
ngx_http_core_merge_loc_conf
太多了
1. ngx_http_log_module
ngx_http_log_init
postconfiguration
初始http日志格式
ngx_http_log_create_main_conf
ngx_http_log_main_conf_t
ngx_http_log_create_loc_conf
ngx_http_log_loc_conf_t
ngx_http_log_merge_loc_conf
日志合并,待仔细看
2. ngx_http_upstream_module
ngx_http_upstream_add_variables
preconfiguration
ngx_http_upstream_create_main_conf
ngx_http_upstream_main_conf_t
upstreams|array
ngx_http_upstream_srv_conf_t|4
ngx_http_upstream_init_main_conf
后续找个配置具体分析
3. ngx_http_static_module
ngx_http_static_init
ngx_http_core_main_conf_t->phases[NGX_HTTP_CONTENT_PHASE].handlers=ngx_http_static_handler
4. ngx_http_autoindex_module
ngx_http_autoindex_init
ngx_http_autoindex_create_loc_conf
ngx_http_autoindex_loc_conf_t
ngx_http_autoindex_merge_loc_conf
enable=0
format=0
localtime=0
exact_size=1
5. ngx_http_index_module
ngx_http_index_init
ngx_http_index_create_loc_conf
ngx_http_index_loc_conf_t
ngx_http_index_merge_loc_conf
6. ngx_http_auth_basic_module
ngx_http_auth_basic_init
ngx_http_auth_basic_create_loc_conf
ngx_http_auth_basic_loc_conf_t
ngx_http_auth_basic_merge_loc_conf
7. ngx_http_access_module
ngx_http_access_init
ngx_http_access_create_loc_conf
ngx_http_access_loc_conf_t
ngx_http_access_merge_loc_conf
8. ngx_http_limit_conn_module
ngx_http_limit_conn_init
ngx_http_limit_conn_create_conf
ngx_http_limit_conn_conf_t
ngx_http_limit_conn_merge_conf
log_level=NGX_LOG_ERR
status_code=NGX_HTTP_SERVICE_UNAVAILABLE
9. ngx_http_limit_req_module
ngx_http_limit_req_init
ngx_http_limit_req_create_conf
ngx_http_limit_req_conf_t
ngx_http_limit_req_merge_conf
limit_log_level=NGX_LOG_ERR
10. ngx_http_geo_module
11. ngx_http_map_module
ngx_http_map_create_conf
ngx_http_map_conf_t
12. ngx_http_split_clients_module
13. ngx_http_referer_create_conf
ngx_http_referer_create_conf
ngx_http_referer_conf_t
ngx_http_referer_merge_conf
14. ngx_http_proxy_module
ngx_http_proxy_add_variables
ngx_http_proxy_create_main_conf
ngx_http_proxy_main_conf_t
ngx_http_proxy_merge_loc_conf
ngx_http_proxy_loc_conf_t
15. ngx_http_fastcgi_module
ngx_http_fastcgi_add_variables
ngx_http_fastcgi_create_main_conf
ngx_http_fastcgi_main_conf_t
ngx_http_fastcgi_create_loc_conf
ngx_http_fastcgi_loc_conf_t
ngx_http_fastcgi_merge_loc_conf
16. ngx_http_uwsgi_module
ngx_http_uwsgi_create_main_conf
ngx_http_uwsgi_main_conf_t
ngx_http_uwsgi_create_loc_conf
ngx_http_uwsgi_loc_conf_t
ngx_http_uwsgi_merge_loc_conf
17. ngx_http_scgi_module
ngx_http_scgi_create_main_conf
ngx_http_scgi_main_conf_t
ngx_http_scgi_create_loc_conf
ngx_http_scgi_loc_conf_t
ngx_http_scgi_merge_loc_conf
18. ngx_http_memcached_create_loc_conf
ngx_http_memcached_create_loc_conf
ngx_http_memcached_loc_conf_t
ngx_http_memcached_merge_loc_conf
19. ngx_http_empty_gif_module
20. ngx_http_browser_add_variable
ngx_http_browser_add_variable
ngx_http_browser_create_conf
ngx_http_browser_conf_t
ngx_http_browser_merge_conf
21. ngx_http_upstream_hash_module
ngx_http_upstream_hash_create_conf
ngx_http_upstream_hash_srv_conf_t
22. ngx_http_upstream_ip_hash_module
23. ngx_http_upstream_least_conn_module
24. ngx_http_upstream_keepalive_module
ngx_http_upstream_keepalive_create_conf
ngx_http_upstream_keepalive_srv_conf_t
25. ngx_http_upstream_zone_module
26. ngx_http_write_filter_module
ngx_http_write_filter_init
27. ngx_http_header_filter_module
ngx_http_header_filter_init
28. ngx_http_chunked_filter_module
ngx_http_chunked_filter_init
29. ngx_http_range_header_filter_module
ngx_http_range_header_filter_init
30. ngx_http_gzip_filter_module
ngx_http_gzip_add_variables
ngx_http_gzip_filter_init
ngx_http_gzip_create_conf
ngx_http_gzip_conf_t
ngx_http_gzip_merge_conf
31. ngx_http_postpone_filter_module
ngx_http_postpone_filter_init
32. ngx_http_ssi_filter_module
ngx_http_ssi_preconfiguration
ngx_http_ssi_filter_init
ngx_http_ssi_create_main_conf
ngx_http_ssi_main_conf_t
ngx_http_ssi_init_main_conf
ngx_http_ssi_create_loc_conf
ngx_http_ssi_loc_conf_t
ngx_http_ssi_merge_loc_conf
33. ngx_http_charset_filter_module
ngx_http_charset_postconfiguration
ngx_http_charset_create_main_conf
ngx_http_charset_main_conf_t
ngx_http_charset_create_loc_conf
ngx_http_charset_loc_conf_t
ngx_http_charset_merge_loc_conf
34. ngx_http_userid_filter_module
ngx_http_userid_add_variables
ngx_http_userid_init
ngx_http_userid_create_conf
ngx_http_userid_conf_t
ngx_http_userid_merge_conf
35. ngx_http_headers_filter_module
ngx_http_headers_filter_init
ngx_http_headers_create_conf
ngx_http_headers_conf_t
ngx_http_headers_merge_conf
36. ngx_http_copy_filter_module
ngx_http_copy_filter_init
ngx_http_copy_filter_create_conf
ngx_http_copy_filter_conf_t
ngx_http_copy_filter_merge_conf
37. ngx_http_range_body_filter_module
ngx_http_range_body_filter_init
38. ngx_http_not_modified_filter_module
ngx_http_not_modified_filter_init
worker_cpu_affinity
初始化配置调用顺序create main configurationcreate server configurationcreate location configurationpreconfigurationinit main configurationpostconfiguration//下面两个顺序待定merge server configurationmerge location configuration
0 条评论
回复 删除
下一页