Commit 1c50f4fb authored by omega8cc's avatar omega8cc Committed by anarcat

Add support for AdvAgg module in the Nginx configuration.

parent 68258a81
......@@ -61,6 +61,19 @@
deny all;
}
###
### advagg_css and advagg_js support
###
location ~* files/advagg_(?:css|js)/ {
access_log off;
expires 365d;
rewrite ^/files/advagg_(.*)/(.*)$ /sites/$host/files/advagg_$1/$2 last;
add_header Pragma "";
add_header Cache-Control "public";
add_header X-Header "AdvAgg Generator 1.0";
try_files $uri @drupal;
}
###
### make css files compatible with boost caching - nginx 0.7.27 or newer required with try_files support
###
......
......@@ -47,6 +47,19 @@
deny all;
}
###
### advagg_css and advagg_js support
###
location ~* files/advagg_(?:css|js)/ {
access_log off;
expires 365d;
rewrite ^/files/advagg_(.*)/(.*)$ /sites/$host/files/advagg_$1/$2 last;
add_header Pragma "";
add_header Cache-Control "public";
add_header X-Header "AdvAgg Generator 1.0";
try_files $uri @drupal;
}
###
### make css files compatible with boost caching - nginx 0.7.27 or newer required with try_files support
###
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment