location issue

Glen Lumanau glen at lumanau.web.id
Thu Jan 29 09:02:24 MSK 2009


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?

 

 

From: Glen Lumanau [mailto:glen at lumanau.web.id] 
Sent: 29 Januari 2009 12:57
To: 'nginx at sysoev.ru'
Subject: location issue

 

Hi,

 

Is that posibble to have different root directory inside "location"?

 

For example :

    location ^~ /images {

        root            /home/test/images/stories;

    }

 

    location ^~ /thumbnails {

        root            /home/test/images/thumbnails;

    }

 

 

Or where's the error? I've tried with no luck

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20090129/c92b9f92/attachment.html>


More information about the nginx mailing list