Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


   


   


   















      :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

location uri


  • To: nginx-ru@xxxxxxxxx
  • Subject: location uri
  • From: Sergey Croitor <scroitor@xxxxxxxxx>
  • Date: Sat, 12 Jan 2013 21:10:00 +0200
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=0A7y2+HHUb9+VHskE45m6iH5dtRs1QWGpGZOW+davx0=; b=nCu3Lz9mSHYCCXgtrSmFhrEQBSiDIttMrQmzl/ySsGEQEYRekBUvNQdnUnIsVMD+cr XGlt/+2Gk94b07YAQXiLFlwbrIzY7TetjzFzrtHyb5AIz28Nvn2FDk2xavgy2LR3cbui gH7UrbJl98wOdgJggm1w+Xq8ejcicg+BTih31ebw9i2e3U4T4T4LeqOxht8tvAR+PhC3 APuvY3KZXF12K/ema3ntdAjcnSLHQXf24mzwCuXbLItPTLW++Qa9wggmVo8gJYp7x+en w/phBg2YG7+rp1KjVxgnVF9BlXIg4+oQKUNtHc/6hkUBn0t5HLpx5pbCCMlG4E5PN+Ze w1nw==

!

uri :
/index.php?main_page=nocachedajax&q=savelocation


:

location /index.php?main_page=nocachedajax&q=savelocation {
proxy_pass http://backend;
proxy_cache cache;
proxy_cache_valid 200 302 304 1800m;
proxy_cache_valid any 1s;
proxy_cache_key "$request_method|$http_if_modified_since|$http_if_none_match|$host|savelocation";
proxy_hide_header "Set-Cookie";
proxy_ignore_headers "Cache-Control" "Expires";
add_header Cache-Control private;
expires 1800m;
include /etc/nginx/proxy.conf;
if ($http_user_agent !~* (spider|bot|crawler)) {
#
# ,
return 412;
}
error_page 412 = @fallback;
}

location
location ^~ /index.php?main_page=nocachedajax&q=savelocation {
...
}

:
Note that locations of all types test only a URI part of request line without arguments. This is done because arguments in the query string may be given in several ways
, "?", .

- location ?

.

_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.