atom feed7 messages in ru.sysoev.nginxRe: Rewrite foo.com. to foo.com
FromSent OnAttachments
Ezra ZygmuntowiczNov 7, 2007 3:05 pm 
Eden LiNov 7, 2007 3:40 pm 
Eden LiNov 7, 2007 3:42 pm 
Wayne E. SeguinNov 7, 2007 8:10 pm 
Wayne E. SeguinNov 7, 2007 8:12 pm 
Igor SysoevNov 7, 2007 11:15 pm 
Ezra ZygmuntowiczNov 8, 2007 3:56 pm 
Subject:Re: Rewrite foo.com. to foo.com
From:Wayne E. Seguin (wayn@public.gmane.org)
Date:Nov 7, 2007 8:10:32 pm
List:ru.sysoev.nginx

On Nov 7, 2007 6:06 PM, Ezra Zygmuntowicz
<ez-NLltGlunAUd/unjJ@public.gmane.org> wrote:

if ( $host ~* (.*?\.?foo\.com)\.)$ { set $domainwithoutdot $1; rewrite ^(.*)$ http://$domainwithoutdot$1 permanent; }

Ezra,

Why is the '$' outside the if() parenthesis? Also try $http_host.

~Wayne