ðòïåëôù 


  áòèé÷ 


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]

Re: nginx rewrite ?&



ðÏÐÒÏÂÏ×ÁÌ:

š š š š location = /test {
š š š š š š š š if ($args ~ ^&) {
š š š š š š š š š š š š return 301 http://example.com/work/;
š š š š š š š š }

š š š š š š š š default_type text/plain;
š š š š š š š š return 200 $args;
š š š š }

òÏÂÉÔ: ÌÉÂÏ ×Ù×ÏÄÉÔ ÐÅÒÅÍÅÎÎÕÀ, ÌÉÂÏ ÄÅÌÁÅÔ ÒÅÄÉÒÅËÔ.


4 ÁÐÒÅÌÑ 2013 Ç., 13:10 ÐÏÌØÚÏ×ÁÔÅÌØ skeletor <nginx-forum@xxxxxxxx> ÎÁÐÉÓÁÌ:
ë ÓÏÖÁÌÅÎÉÀ É Ó args ÔÏÖÅ ÎÅ ÚÁÒÁÂÏÔÁÌ. ðÒÏÂÏ×ÁÌ ×ÏÔ ÔÁË:

if ($args ~* ^&) {
šrewrite ^ http://$host permanent;
}

if ($args ~* "^&") {
šrewrite ^ http://$host permanent;
}

if ($args ~* "^\&") {
šrewrite ^ http://$host permanent;
}

Posted at Nginx Forum: http://forum.nginx.org/read.php?21,238083,238087#msg-238087

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



--
Best Regards,
Vadim Lazovskiy
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.