location help
Igor Sysoev
is at rambler-co.ru
Sat Dec 8 21:30:24 MSK 2007
On Sat, Dec 08, 2007 at 10:27:12AM -0800, rkmr.em at gmail.com wrote:
> 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.
--
Igor Sysoev
http://sysoev.ru/en/
More information about the nginx
mailing list