Alias not working on 0.7.35

Glen Lumanau glen at lumanau.web.id
Wed Apr 1 06:59:39 MSD 2009


2009/3/31 Igor Sysoev <is at rambler-co.ru>

> On Tue, Mar 31, 2009 at 01:56:01PM +0700, Glen Lumanau wrote:
>
> > I tried to put this configuration on my nginx.conf
> >
> >     location  /default/ {
> >         alias  /home/myhome/content/;
> >     }
> >
> >         location ~ \.flv$ {
> >             flv;
> >         }
> >
> > But it doesn't work.
> >
> > When opening a FLV files, it always pointed me to the root directory
> which
> > is /home/myhome
> >
> > Is there anythink i've missed?
>
> You need the last 0.7.x:
>
>     location    /default/ {
>         alias  /home/myhome/content/;
>     }
>
>      location ~ ^/default/(.+\.flv)$ {
>         alias  /home/myhome/content/$1;
>         flv;
>     }

Why do we need to put an alias on the flv?
Is this method not work on 0.6.35 ?

>


>
>
> --
> Igor Sysoev
> http://sysoev.ru/en/
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20090401/244953d3/attachment.html>


More information about the nginx mailing list