location issue
Igor Sysoev
is at rambler-co.ru
Thu Jan 29 09:13:02 MSK 2009
On Thu, Jan 29, 2009 at 01:02:24PM +0700, Glen Lumanau wrote:
> I tried
>
>
>
> location /images/ {
>
> root /home/test/images/stories;
>
> }
>
>
>
> location /thumbnails/ {
>
> root /home/test/images/thumbnails;
>
> }
>
>
>
> What I want if someone accessing /images/a.jpg , will accessing
> /home/test/images/stories/a.jpg
>
> If someone accessing /thumbnails/a.jpg , will accessing
> /home/test/images/thumbnails/a.jpg
>
>
>
> Is that case posibble?
location /images/ {
- root /home/test/images/stories;
+ alias /home/test/images/stories/;
}
location /thumbnails/ {
- root /home/test/images/thumbnails;
+ root /home/test/images;
}
--
Igor Sysoev
http://sysoev.ru/en/
More information about the nginx
mailing list