Posted by dreamdust on February 19, 2010 at 4:48pm
9 followers
| Project: | ImageCache |
| Version: | 6.x-2.x-dev |
| Component: | Documentation |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
As of lighttpd 1.4.24, mod_magnet is not required to check whether a file exists. ImageCache and clean URL's now work with rewrite rules alone. Using mod_rewrite is less memory intensive and complicated than using mod_magnet with the LUA script linked on the module homepage.
All you need is:
url.rewrite-if-not-file = (
"^/(.*)$" => "/index.php?q=$1"
)Lighttpd documentation for url.rewrite-if-not-file.
This rule goes before your other rewrite rules.
Thought you might want to update the module homepage so people don't think they have to use mod_magnet to use Clean URL's and ImageCache.
Comments
#1
Here's a brief tutorial about getting ImageCache to work on Lighttpd without mod_magnet.
#2
Here's changes for the INSTALL.txt file.
#3
Thanks, committed the patch and updated the project page.
#4
Automatically closed -- issue fixed for 2 weeks with no activity.
#5
That veracium.com URL is not working anymore...
#6
See comment #5.
The veracium.com URL referenced in the INSTALL.txt doesn't work. The referenced content seems to have been removed from veracium.com.
#7
veracium.com is not working at all actually, I suggest that the project page gets updated
#8
Ideally, someone could dig up the referenced info that was once on veracium.com and integrate it into the README.txt, or, if it's more complicated than that, we can create a D.O. doc page... or something.... If the info was useful and not obvious that is.
#9
The problem is that the seems to be nowhere now and only the mod_magnet information seems to be available.
Let's see if there are other drupaleros that have lighttpd with imagecache, they might have the info stored! I'll also send a message to Veracium himself and see if he can help.
#10
@bserem:
Thanks for jumping on this. I'm using lighttpd on a few installations, behind a pound reverse proxy, but I cobbled together a working solution that's specific to that configuration and I'm not at all sure it's a good solution -- the only thing going for it is that it works.
I was interested in seeing the veracium.com solution as an alternative to my approach (and to learn more about lighttpd in this scenario). Unfortunately, I moved on to other things once I had it working.
#11
I've sent a mail to veracium this evening (evening in Greece, night in Canada) and I hope that I'll get a reply.
It came as a surprise to me that Imagecache wasn't working and took me about an hour to locate the problem... I've never had a Lighttpd server (and this one isn't mine...!).
You can never get bored of Drupal!
#12