Skip to content

Instantly share code, notes, and snippets.

@netProphET
Created April 8, 2013 17:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save netProphET/5338672 to your computer and use it in GitHub Desktop.
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
# 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