changing root dir based on file request

Edho P Arief edhoprima at gmail.com
Wed Jan 27 15:07:45 MSK 2010


On Wed, Jan 27, 2010 at 6:58 PM, Stefanita Rares Dumitrescu
<katmai at keptprivate.com> wrote:
> works for
> www.example.com/file.html
> but for
> www.example.com/folder/file.html
> doesn't even if i use
> location = /folder/file.html { root /var/newww; }
>
> any idea how can i fix this up ?
>

location = /folder/file.html { alias /var/newww/file.html; }

-- 
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org



More information about the nginx mailing list