Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Переменные сервера в ssi
On Fri, May 22, 2009 at 06:40:21PM +0400, ываукп Лвапу wrote:
> гм, сделал так:
> if ( $query_string ~ "what=([0-9]+)" ) {
> set $temp $1;
> rewrite ^cgi-bin/print.cgi /site/$temp.htm last; }
> это правильный путь? )
location = /cgi-bin/print.cgi {
if ($args ~ what=([0-9]+)) {
set $temp $1;
rewrite ^ /site/$temp.htm last;
}
}
location = /cgi-bin/print.cgi {
if ($arg_what ~ ([0-9]+)) {
rewrite ^ /site/$arg_what.htm last;
}
}
--
Игорь Сысоев
http://sysoev.ru
|