Fwd: Help with rewrite rule
Ilan Berkner
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
suggestions?
Thanks
--
Ilan Berkner
Chief Technology Officer
Time4Learning.com
6300 NE 1st Ave., Suite 203
Ft. Lauderdale, FL 33334
(954) 771-0914
<http://www.twitter.com/time4learning> <http://www.facebook.com/Time4Learning>
Time4Learning.com - Online interactive curriculum for home use, PreK-8th
Grade.
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...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20120101/e5b89e78/attachment-0001.html>
More information about the nginx
mailing list