comparison src/http/modules/ngx_http_index_module.c @ 403:9d81578d04bb NGINX_0_7_11

nginx 0.7.11 *) Change: now ngx_http_charset_module does not work by default with text/css MIME type. *) Feature: now nginx returns the 405 status code for POST method requesting a static file only if the file exists. *) Feature: the "proxy_ssl_session_reuse" directive. *) Bugfix: a "proxy_pass" directive without URI part might use original request after the "X-Accel-Redirect" redirection was used; *) Bugfix: if a directory has search only rights and the first index file was absent, then nginx returned the 500 status code. *) Bugfix: in inclusive locations; the bugs had appeared in 0.7.1.
author Igor Sysoev <http://sysoev.ru>
date Mon, 18 Aug 2008 00:00:00 +0400
parents 05981f639d21
children dac47e9ef0d5
comparison
equal deleted inserted replaced
401:47d42325b5fd 403:9d81578d04bb
307 if (of.err == NGX_ENOENT) { 307 if (of.err == NGX_ENOENT) {
308 *last = c; 308 *last = c;
309 return ngx_http_index_error(r, clcf, dir.data, NGX_ENOENT); 309 return ngx_http_index_error(r, clcf, dir.data, NGX_ENOENT);
310 } 310 }
311 311
312 if (of.err == NGX_EACCES) {
313
314 *last = c;
315
316 /*
317 * ngx_http_index_test_dir() is called after the first index
318 * file testing has returned an error distinct from NGX_EACCES.
319 * This means that directory searching is allowed.
320 */
321
322 return NGX_OK;
323 }
324
312 ngx_log_error(NGX_LOG_CRIT, r->connection->log, of.err, 325 ngx_log_error(NGX_LOG_CRIT, r->connection->log, of.err,
313 ngx_open_file_n " \"%s\" failed", dir.data); 326 ngx_open_file_n " \"%s\" failed", dir.data);
314 } 327 }
315 328
316 return NGX_HTTP_INTERNAL_SERVER_ERROR; 329 return NGX_HTTP_INTERNAL_SERVER_ERROR;