Created
April 8, 2013 17:30
-
-
Save netProphET/5338672 to your computer and use it in GitHub Desktop.
MODX Cloud Nginx "Web Rule" for Adaptive Images script
https://github.com/MattWilcox/Adaptive-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
# Adaptive-Images rewrite | |
# this example bypasses requests for any images in the root assets and ai-cache folders | |
rewrite ^/(?!assets|ai-cache).*\.(jpe?g|gif|png)$ /adaptive-images.php last; | |
location / { | |
try_files $uri $uri/ @modx-rewrite; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment