Welcome! Log In Create A New Profile

Advanced

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

September 13, 2011 07:52AM
Здравствуйте,

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

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

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

Сейчас поставил nginx 1.0.6
root@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?

Спасибо.
Subject Author Posted

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

Sergey September 13, 2011 07:52AM

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

Maxim Dounin September 13, 2011 07:58AM

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

Sergey September 13, 2011 08:00AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 170
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready