location help

rkmr.em at gmail.com rkmr.em at gmail.com
Sat Dec 8 21:27:12 MSK 2007


On Dec 8, 2007 10:19 AM, Igor Sysoev <is at rambler-co.ru> wrote:

> On Sat, Dec 08, 2007 at 10:16:12AM -0800, rkmr.em at gmail.com wrote:
> >             root   /home/mark/work/pop/static;
> >         }
> >         location ~ ^/[^/]+\.html$ {
> >             root   /home/mark/work/pop/static;
> >         }
> >         location ~ ^/[^/]+\.txt$ {
> >             root   /home/mark/work/pop/static;
> >         }
> >         location ~ ^/[^/]+\.txt.gz$ {
> >             root   /home/mark/work/pop/static;
> >         }
>
>          location ~ ^/[^/]+\.(ico|xml|xml\.gz|html|txt|txt\.gz)$ {
>              root   /home/mark/work/pop/static;
>          }
>
thanks a lot! works great!!!
these files will be served by nginx directly right? and not sent to
backends? pl. correct me if i am wrong
thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20071208/3ff79ac5/attachment.html>


More information about the nginx mailing list