Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
MODX Cloud Nginx "Web Rule" for Adaptive Images script
# 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