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?
Simon
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?
Am 14.06.2013 11:15, schrieb Mark Alan:
On Fri, 14 Jun 2013 09:58:12 +0200, [email protected]
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
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx
_______________________________________________
nginx mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx