Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## serve imagecache files directly or redirect to drupal if they do not exist.
- location ~* ^.+.(xsl|xml)$ {
- access_log off;
- expires 1d;
- try_files $uri @drupal;
- }
- ## Default location
- location / {
- try_files $uri $uri/ @drupal;
- index index.php;
- }
- location @drupal {
- rewrite ^/(.*)$ /index.php?q=$1 last;
- }
- ## Images and static content is treated different
- location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|xml)$ {
- access_log off;
- expires 10d;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement