Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.