ngx_command_type
2016-09-02 09:43:51 4 举报
AI智能生成
登录查看完整内容
nginx_command_type
作者其他创作
大纲/内容
type
1
NGX_DIRECT_CONF
一般由CONF_CORE_MODULE类型的核心模块使用,仅与NGX_MAIN_CONF一起使用,表示需要解析不属于任何{}内的全局配置项
NGX_ANY_CONF
目前未使用
2
NGX_MAIN_CONF
配置项可以出现在全局配置项中
NGX_EVENT_CONF
配置项可以出现在event{}块中
NGX_MAIL_MAIN_CONF
配置项可以出现在mail{}或imap{}块中
NGX_MAIL_SRV_CONF
配置项可以出现在server{}块中,而server块必须属于mail或imap块
NGX_HTTP_MAIN_CONF
配置项可以出现在http{}块中
NGX_HTTP_SRV_CONF
配置项可以出现在server{}块中,且该server块必须出现在http块中
NGX_HTTP_LOC_CONF
配置项可以出现在location{}块中,且该location块必须出现在http块中
NGX_HTTP_UPS_CONF
配置项可以出现在upstream{}块中,且该upstream块必须出现在http块中
NGX_HTTP_SIF_CONF
配置项可以出现在server块的if块中,目前仅有rewrite块会使用
NGX_HTTP_LIF_CONF
NGX_HTTP_LMT_CONF
配置项可以出现在limit_except{}块中,且该limit_except必须出现在http块中
3
NGX_CONF_NOARGS
配置项不携带任何参数
NGX_CONF_TAKE1
配置项必须携带1个参数
NGX_CONF_TAKE2
配置项必须携带2个参数
NGX_CONF_TAKE3
配置项必须携带3个参数
NGX_CONF_TAKE4
配置项必须携带4个参数
NGX_CONF_TAKE5
配置项必须携带5个参数
NGX_CONF_TAKE6
配置项必须携带6个参数
NGX_CONF_TAKE7
配置项必须携带7个参数
NGX_CONF_TAKE12
配置项可以携带1或2个参数
NGX_CONF_TAKE13
配置项可以携带1或3个参数
NGX_CONF_TAKE23
配置项可以携带2或3个参数
NGX_CONF_TAKE123
配置项可以携带1~3个参数
NGX_CONF_TAKE1234
配置项可以携带1~4个参数
4
NGX_CONF_ARGS_NUMBER
未使用
NGX_CONF_BLOCK
配置项定义了一种新的{}块
NGX_CONF_ANY
不验证配置项携带的参数
NGX_CONF_FALG
配置项携带的参数最多是一个,且只能是on或off
NGX_CONF_1MORE
配置项携带的参数必须超过1个
NGX_CONF_2MORE
配置项携带的参数必须超过2个
NGX_CONF_MULTI
0 条评论
回复 删除
下一页