[SPAM]Re: Правило rewrite

Kirill A. Korinskiy catap+nginx at catap.ru
Wed May 6 01:58:10 MSD 2009


At Wed, 6 May 2009 01:21:44 +0400,
"Alexey V. Karagodov" <kav at karagodov.name> wrote:
> 
> 
> > location /files/ {
> >    root /var/www/site;
> >    if (!-f $request_filename) {
> это самый НЕ правильный путь

расскажи чем плох if + rewite?

> > 	rewrite ([^/]+)$ /no_file_exists_action.php?file=$1;
> >    }
> > }
> >

-- 
wbr, Kirill





More information about the nginx-ru mailing list