Fwd: Help with rewrite rule
ilan at time4learning.com
Mon Jan 2 02:27:34 UTC 2012
Solved it with this rule:
rewrite ^(.*)/fancybox/(.+\.png)$ /images/fancybox/$2 last;
---------- Forwarded message ----------
From: Ilan Berkner <ilan at time4learning.com>
Date: Sun, Jan 1, 2012 at 9:20 PM
Subject: Help with rewrite rule
To: nginx at nginx.org
I'm trying to rewrite any png files referenced through the fancybox sub
directory to a directory off of the images folder as follows:
rewrite ^/fancybox/(.+\.png)$ /images/fancybox/$1 last;
This is not working, probably b/c my regex is off the mark. Any
Chief Technology Officer
6300 NE 1st Ave., Suite 203
Ft. Lauderdale, FL 33334
Time4Learning.com - Online interactive curriculum for home use, PreK-8th
Time4Writing.com - Online writing tutorials for high, middle, and
elementary school students.
Time4Learning.net - A forum to chat with parents online about kids,
education, parenting and more.
spellingcity.com - Online vocabulary and spelling activities for teachers,
parents and students.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx