On Nov 7, 2007 6:06 PM, Ezra Zygmuntowicz <ez at engineyard.com> 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