I have an other rule driving me crazy:

Apache:

RewriteRule ^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 [L]

nginx:

location / {
rewrite "^/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 last;

}
Is there a fault?
Thanks for the Help
Simon

Am 13.06.2013 10:52, schrieb Host DL:
On Thu, Jun 13, 2013 at 2:44 AM, Simon Hönscheid
<[email protected]> wrote:

# skip existing files
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule .* - [L]

if (-e $request_filename){

break;
}

try this at the first of your location/server block

_______________________________________________
nginx mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx

_______________________________________________
nginx mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx

Reply via email to