Opened 11 years ago

Closed 11 years ago

#263 closed defect (invalid)

Break named location redirect

Reported by: Aleksandr Sytar Owned by:
Priority: critical Milestone: 1.3
Component: nginx-core Version: 1.3.x
Keywords: named location Cc:
uname -a: Windows 2003
nginx -V: nginx version: nginx/1.3.10
TLS SNI support enabled
configure arguments: --with-cc=cl --builddir=objs.msvc8 --with-debug
--prefix= --conf-path=conf/nginx.conf --pid-path=logs/nginx.pid
--http-log-path=logs/access.log --error-log-path=logs/error.log
--sbin-path=nginx.exe
--http-client-body-temp-path=temp/client_body_temp
--http-proxy-temp-path=temp/proxy_temp
--http-fastcgi-temp-path=temp/fastcgi_temp
--http-scgi-temp-path=temp/scgi_temp
--http-uwsgi-temp-path=temp/uwsgi_temp --with-cc-opt=-DFD_SETSIZE=1024
--with-pcre=objs.msvc8/lib/pcre-8.31
--with-zlib=objs.msvc8/lib/zlib-1.2.7 --with-select_module
--with-http_realip_module --with-http_addition_module
--with-http_sub_module --with-http_dav_module
--with-http_stub_status_module --with-http_flv_module
--with-http_mp4_module --with-http_gunzip_module
--with-http_gzip_static_module --with-http_random_index_module
--with-http_secure_link_module --with-mail
--with-openssl=objs.msvc8/lib/openssl-1.0.1c
--with-openssl-opt=enable-tlsext --with-http_ssl_module
--with-mail_ssl_module --with-ipv6

Description

location / {

try_files $uri @apache;

}

location @apache {

proxy_pass ...;

}

raise error: 2012/12/25 23:27:10 [error] 560#7228: *121 could not find named location "@apache", client: xxx.xxxx.xxx.xxx, server: domain.ltd,request: "GET / HTTP/1.1", host: "www.domain.ltd"

Change History (1)

comment:1 by Ruslan Ermilov, 11 years ago

Resolution: invalid
Status: newclosed

Pilot error.

Note: See TracTickets for help on using tickets.