ПРОЕКТЫ 


  АРХИВ 


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]

Не работает merge_slashes off при редиректах


  • To: nginx-ru <nginx-ru@xxxxxxxxx>
  • Subject: Не работает merge_slashes off при редиректах
  • From: "SaveFrom.net" <savefrom@xxxxxxxxx>
  • Date: Sun, 15 Jan 2012 19:35:18 +0800
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=66+R7GpHCs38kUMGsW/06+aPY//NqX10RSVJ4UmdV04=; b=H0rd4cC3iem+T3CQTo8Uy3QIadOBuVkJVpcmTz5LOWc5bMYka8dz2bBSu2AL4Jh3O4 rMDL8UKwIWrcxMgKVxoIMeGG4itG3C1URSgE3TwFpCD37ilEFKI1Svu1EEwuAJInC5Nk Cn8HfZT/OFTNqvMv39+dWlcFoon9f4Xn5OihM=

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

Запрос    http://sfrom.net/http://bar 

Ответ      http://savefrom.net/http:/bar 

(пропал слеш в uri)

Конфиг
server {
 listen xxx;
server_name sfrom.net www.sfrom.net;
merge_slashes off;
rewrite '^\/https?:' 'http://savefrom.net$uri?foo' permanent;
rewrite ^ 'http://savefrom.net/http:/$uri?foo' permanent;
}


Linux  2.6.18-238.1.1.1.el5 

nginx: nginx version: nginx/1.1.2
nginx: built by gcc 4.1.2 20080704 (Red Hat 4.1.2-50)
nginx: TLS SNI support disabled
nginx: configure arguments: --conf-path=/etc/nginx/nginx.conf --sbin-path=/usr/sbin/nginx --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --http-client-body-temp-path=/var/spool/nginx/tmp/client --http-proxy-temp-path=/var/spool/nginx/tmp/proxy --http-fastcgi-temp-path=/var/spool/nginx/tmp/fastcgi --pid-path=/var/run/nginx.pid --user=nginx --group=nginx --with-http_ssl_module --with-http_gzip_static_module --with-http_stub_status_module

--
С уважением, Антон
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.