Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [SPAM]Re: Правило rewrite
At Wed, 6 May 2009 01:21:44 +0400,
"Alexey V. Karagodov" <kav@xxxxxxxxxxxxxx> wrote:
>
>
> > location /files/ {
> > root /var/www/site;
> > if (!-f $request_filename) {
> это самый НЕ правильный путь
расскажи чем плох if + rewite?
> > rewrite ([^/]+)$ /no_file_exists_action.php?file=$1;
> > }
> > }
> >
--
wbr, Kirill
|