Location обрабатывается с учетом регистра при переходе с 0.7.65 на 1.0.6

Sergey nginx-forum на nginx.us
Вт Сен 13 11:52:40 UTC 2011


Здравствуйте,

Вопрос в следующем. Раньше стоял nginx 0.7.65
и в конфиге был такой rewrite

location /registration {
rewrite .* http://domain.com/page permanent;
}

Вроде как срабатывал location без учета
регистра.

Сейчас поставил nginx 1.0.6
root at ip-10-48-54-54:/usr/local/nginx/logs# /usr/local/nginx/sbin/nginx
-V
nginx: nginx version: nginx/1.0.6
nginx: built by gcc 4.4.1 (Ubuntu 4.4.1-4ubuntu9)
nginx: configure arguments: --with-http_stub_status_module
--with-http_sub_module --pid-path=/usr/local/nginx/logs/nginx.pid
--error-log-path=/usr/local/nginx/logs/error.log
--http-log-path=/usr/local/nginx/logs/access.log
--http-client-body-temp-path=/usr/local/nginx/client_body_temp
--http-proxy-temp-path=/usr/local/nginx/proxy_temp
--http-fastcgi-temp-path=/usr/local/nginx/fastcgi_temp

Location стал работать c с учетом регистра.

Это так и должно быть и нужно
использовать регулрные выражения в
location?

Спасибо.

Posted at Nginx Forum: http://forum.nginx.org/read.php?21,215147,215147#msg-215147



Подробная информация о списке рассылки nginx-ru