Created
August 14, 2013 11:30
-
-
Save jeremyworboys/6230206 to your computer and use it in GitHub Desktop.
Test Lighthttpd config for Retina Images
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HTTP["cookie"] =~ "devicePixelRatio" { | |
url.rewrite-final += ( "^{url}\.(jpe?g|gif|png|bmp)" => "/retinaimages.php" ) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Tried it, no luck... I'm not even sure that it's referencing the retinaimages.php, how would I be able to tell?
Here's my entry in the lighttpd.conf file (I have a few sites running on this server, but only want to test this on one):
server.document-root = "/var/www/website"
$HTTP["cookie"] =~ "devicePixelRatio" {
url.rewrite-final += ( "^{url}.(jpe?g|gif|png|bmp)" => "/retinaimages.php" )
}
}