atom feed8 messages in ru.sysoev.nginxRe: Trying to do the opposite of www....
FromSent OnAttachments
DavidAug 31, 2008 4:59 pm 
Igor SysoevAug 31, 2008 10:05 pm 
mikeAug 31, 2008 11:51 pm 
Igor SysoevSep 1, 2008 12:00 am 
mikeSep 1, 2008 12:29 am 
Igor SysoevSep 1, 2008 12:34 am 
mikeSep 1, 2008 12:43 am 
DavidSep 1, 2008 5:03 am 
Subject:Re: Trying to do the opposite of www.domain.com -> domain.com
From:mike (mike@public.gmane.org)
Date:Sep 1, 2008 12:43:35 am
List:ru.sysoev.nginx

On 9/1/08, Igor Sysoev <is-G@public.gmane.org> wrote:

There is no difference for "root" directive. Actually, nginx deletes trailing slash from "root" directive because $request_file_name is $document_root$uri", and $uri has slash as first character.

But the trailing slash is important for "alias" directive, because "alias" literally replaces location part of URI:

location /dir/ { alias /path/to/; }

/dir/file > /path/to/file

Gotcha. Thanks.