Need some help with rewrite rule translation

mailinglisten at mailinglisten at
Fri Jun 14 09:44:08 UTC 2013

Thanks for the Detailed Information :-)

I have still problems with this role:

Client sends the first part of the urls, server rewrites it, and php 
delivers the picture.
I tried to escape \ and dots, but this does not help.
Server gives back a 404.

Then I activated the error_log with level notice and added rewrite_log 
on, but there is no log output.
Any hints?



^image/resized/(\d+)/([0-9a-fA-F]{6}/|)(.+)_(\d+)(|m)x(\d+)(|m)(_.+|).(jpg|jpeg|png|gif)	resized/getByDimension.php?domainid=$1&objectid=$3&width=$4&height=$6&format=$9&random=$8&color=$2&maxwidth=$5&maxheight=$7 


location / {

Is there a fault?

Am 14.06.2013 11:15, schrieb Mark Alan:
> On Fri, 14 Jun 2013 09:58:12 +0200, mailinglisten at
> wrote:
> Both solutions look interesting, I will have a look on it.
> We use been successfully the "return no content=204" opiton:
> location = /favicon.ico { access_log off; log_not_found off; expires
> 30d; try_files /sites/$server_name/files/favicon.ico $uri =204; }
> Meaning that try_files first looks in a directory where we usually keep
> favicon.ico and logos (.png, .jpg, etc.), then it tries the user
> provied $uri and, if it does not find any then thows out a "no content"
> code (204).
> There is no need to load one more module (Empty Gif Module) just to do
> that.
> M.
> _______________________________________________
> nginx mailing list
> nginx at

More information about the nginx mailing list