location help

Janko Hauser jh at zscout.de
Sat Dec 8 21:38:53 MSK 2007


Am 08.12.2007 um 19:27 schrieb rkmr.em at gmail.com:

>
> 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

Yes, they will be served from the filesystem.

HTH,

__Janko

-- 
Janko Hauser  email:  jhauser at zscout.de
               mobile: +49 1721 641552


-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 155 bytes
Desc: Signierter Teil der Nachricht
URL: <http://nginx.org/pipermail/nginx/attachments/20071208/79b72e2a/attachment.pgp>


More information about the nginx mailing list