comparison src/http/ngx_http_core_module.c @ 5971:ebdb2023e84a

Fixed try_files directory test to match only a directory. Historically, it was possible to match either a file or directory in the following configuration: location / { try_files $uri/ =404; }
author Damien Tournoud <damien@commerceguys.com>
date Wed, 21 Jan 2015 00:26:32 +0100
parents c76d851c5e7a
children 2dac6ae6d703
comparison
equal deleted inserted replaced
5970:74edc0ccf27a 5971:ebdb2023e84a
1351 } 1351 }
1352 1352
1353 continue; 1353 continue;
1354 } 1354 }
1355 1355
1356 if (of.is_dir && !test_dir) { 1356 if (of.is_dir != test_dir) {
1357 continue; 1357 continue;
1358 } 1358 }
1359 1359
1360 path.len -= root; 1360 path.len -= root;
1361 path.data += root; 1361 path.data += root;