Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#2 | imagecache_719508.patch | 706 bytes | drewish |
Comments
Comment #1
veracium CreditAttribution: veracium commentedHere's a brief tutorial about getting ImageCache to work on Lighttpd without mod_magnet.
Comment #2
drewish CreditAttribution: drewish commentedHere's changes for the INSTALL.txt file.
Comment #3
drewish CreditAttribution: drewish commentedThanks, committed the patch and updated the project page.
Comment #5
pyc CreditAttribution: pyc commentedThat veracium.com URL is not working anymore...
Comment #6
mcurry CreditAttribution: mcurry commentedSee 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.
Comment #7
bserem CreditAttribution: bserem commentedveracium.com is not working at all actually, I suggest that the project page gets updated
Comment #8
mcurry CreditAttribution: mcurry commentedIdeally, 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.
Comment #9
bserem CreditAttribution: bserem commentedThe 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.
Comment #10
mcurry CreditAttribution: mcurry commented@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.
Comment #11
bserem CreditAttribution: bserem commentedI'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!
Comment #12
fizk CreditAttribution: fizk commented