Need some help with rewrite rule translation
mailinglisten at simonhoenscheid.de
mailinglisten at simonhoenscheid.de
Thu Jun 13 17:24:12 UTC 2013
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
> <mailinglisten at simonhoenscheid.de> 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
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
More information about the nginx
mailing list