Mercurial > hg > nginx-ranges
comparison src/http/modules/ngx_http_rewrite_module.c @ 218:1bf60f8c5c9e NGINX_0_3_56
nginx 0.3.56
*) Feature: the "dav_access" directive.
*) Feature: the "if" directive supports the "-d", "!-d", "-e", "!-e",
"-x", and "!-x" operators.
*) Bugfix: a segmentation fault occurred if an request returned an
redirect and some sent to client header lines were logged in the
access log.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Fri, 04 Aug 2006 00:00:00 +0400 |
parents | fa32d59d9a15 |
children | 38e7b94d63ac |
comparison
equal
deleted
inserted
replaced
217:a346c23fc94e | 218:1bf60f8c5c9e |
---|---|
815 if (p[1] == 'f') { | 815 if (p[1] == 'f') { |
816 fop->op = ngx_http_script_file_plain; | 816 fop->op = ngx_http_script_file_plain; |
817 return NGX_CONF_OK; | 817 return NGX_CONF_OK; |
818 } | 818 } |
819 | 819 |
820 if (p[1] == 'd') { | |
821 fop->op = ngx_http_script_file_dir; | |
822 return NGX_CONF_OK; | |
823 } | |
824 | |
825 if (p[1] == 'e') { | |
826 fop->op = ngx_http_script_file_exists; | |
827 return NGX_CONF_OK; | |
828 } | |
829 | |
830 if (p[1] == 'x') { | |
831 fop->op = ngx_http_script_file_exec; | |
832 return NGX_CONF_OK; | |
833 } | |
834 | |
820 if (p[0] == '!') { | 835 if (p[0] == '!') { |
821 if (p[2] == 'f') { | 836 if (p[2] == 'f') { |
822 fop->op = ngx_http_script_file_not_plain; | 837 fop->op = ngx_http_script_file_not_plain; |
838 return NGX_CONF_OK; | |
839 } | |
840 | |
841 if (p[2] == 'd') { | |
842 fop->op = ngx_http_script_file_not_dir; | |
843 return NGX_CONF_OK; | |
844 } | |
845 | |
846 if (p[2] == 'e') { | |
847 fop->op = ngx_http_script_file_not_exists; | |
848 return NGX_CONF_OK; | |
849 } | |
850 | |
851 if (p[2] == 'x') { | |
852 fop->op = ngx_http_script_file_not_exec; | |
823 return NGX_CONF_OK; | 853 return NGX_CONF_OK; |
824 } | 854 } |
825 } | 855 } |
826 | 856 |
827 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, | 857 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, |