Quantcast
Channel: Nginx Forum - Nginx Mailing List - Russian
Viewing all articles
Browse latest Browse all 3102

Неожиданное поведение location (2 replies)

$
0
0
Доброго времени суток!

Наткнулся на неожиданное поведение location в случае правила следующего
вида:

location ~ ^/lenin.. { return 302 http://www.test.com/leningrad/; }

Если пойти по ссылке вида http://www.test.com/leninzhiv/ то указанное выше
правило так же сработает, чего в свою очередь быть, мне кажется, не должно.

На всякий случай:

~# nginx -V
nginx version: nginx/1.7.6
built by gcc 4.8.2 (Ubuntu 4.8.2-19ubuntu1)
TLS SNI support enabled
configure arguments: --prefix=/usr/share --sbin-path=/usr/sbin
--conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log
--http-client-body-temp-path=/var/lib/nginx/body
--http-fastcgi-temp-path=/var/lib/nginx/fastcgi
--http-log-path=/var/log/nginx/access.log
--http-proxy-temp-path=/var/lib/nginx/proxy
--lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid
--without-http_uwsgi_module --without-http_scgi_module
--with-http_addition_module --with-http_gzip_static_module
--with-http_spdy_module --with-http_realip_module
--with-http_stub_status_module --with-http_ssl_module --with-ipv6
--add-module=/opt/src/ngx_pagespeed-release-1.9.32.1-beta

WBR,
Sergey 'dreik' Kolesnik
Skype: dreik.lc
Cell: +7 (921) 943-5237
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-ru

Viewing all articles
Browse latest Browse all 3102

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>