atom feed20 messages in ru.sysoev.nginxRe: Tricky Rewrite rules.
FromSent OnAttachments
Gustavo BarrónNov 18, 2007 8:53 am 
HonDev DeveloperNov 18, 2007 4:17 pm 
HonDev DeveloperNov 18, 2007 4:44 pm 
HonDev DeveloperNov 18, 2007 5:37 pm 
Gustavo BarrónNov 18, 2007 10:30 pm 
HoneNov 20, 2007 12:15 pm 
HoneNov 20, 2007 1:30 pm 
Gustavo BarrónNov 20, 2007 2:15 pm 
HoneNov 20, 2007 8:29 pm 
HoneNov 20, 2007 8:46 pm 
HoneNov 21, 2007 6:01 pm 
Gustavo BarrónNov 21, 2007 6:50 pm 
HonDev DeveloperNov 22, 2007 3:46 am 
HonDev DeveloperNov 22, 2007 4:05 am 
HonDev DeveloperNov 22, 2007 4:23 am 
HonDev DeveloperNov 22, 2007 3:17 pm 
HonDev DeveloperNov 26, 2007 2:41 am 
HonDev DeveloperNov 26, 2007 2:44 am 
HonDev DeveloperApr 24, 2008 12:26 am 
HonDev DeveloperApr 24, 2008 1:41 am 
Subject:Re: Tricky Rewrite rules.
From:Gustavo Barrón (list@public.gmane.org)
Date:Nov 18, 2007 10:30:09 pm
List:ru.sysoev.nginx

HonDev Developer wrote:

By the way I don't think you'll need to use the gzip component of wp-super-cache on nginx since nginx already has on the fly gzip. (compression as I understand it.)

Yeah I forgot to tell that nginx is already serving gzip files, but on big scenarios, with many users, serving a precompressed file instead of doing it on the fly, would help greatly on the performance.

also insted of:

if (-f /wp-content/cache/supercache/mydomain.com/$1index.html ) { rewrite ^(.*)$ /wp-content/cache/supercache/mydomain.com/$1index.html last; }

I was trying to do something like

if (-f /wp-content/cache/supercache/mydomain.com/$uriindex.html ) { rewrite ^(.*)$ /wp-content/cache/supercache/mydomain.com/$uriindex.html last; }

But obviously returns a error, is there a way of a) setting a variable on nginx b)escape the i on index.html in order to separate the variable from the text when the config is parsed.