comparison src/http/ngx_http_core_module.c @ 2453:1e53534e6800

try_files should work with files only
author Igor Sysoev <igor@sysoev.ru>
date Mon, 19 Jan 2009 11:24:25 +0000
parents 26d9d4a41e91
children 43dcf8cc2cb1
comparison
equal deleted inserted replaced
2452:95f078e7d743 2453:1e53534e6800
1167 if (of.err != NGX_ENOENT && of.err != NGX_ENOTDIR) { 1167 if (of.err != NGX_ENOENT && of.err != NGX_ENOTDIR) {
1168 ngx_log_error(NGX_LOG_CRIT, r->connection->log, of.err, 1168 ngx_log_error(NGX_LOG_CRIT, r->connection->log, of.err,
1169 ngx_open_file_n " \"%s\" failed", path.data); 1169 ngx_open_file_n " \"%s\" failed", path.data);
1170 } 1170 }
1171 1171
1172 continue;
1173 }
1174
1175 if (!of.is_file) {
1172 continue; 1176 continue;
1173 } 1177 }
1174 1178
1175 path.len -= root; 1179 path.len -= root;
1176 path.data += root; 1180 path.data += root;