Skip to content

Instantly share code, notes, and snippets.

@skurfuerst
Created July 5, 2013 13:14
Show Gist options
  • Save skurfuerst/5934459 to your computer and use it in GitHub Desktop.
Save skurfuerst/5934459 to your computer and use it in GitHub Desktop.
env[FLOW_ROOTPATH] = /var/www/new_sandstorm_website/flow/releases/current/
env[FLOW_WEBPATH] = /var/www/new_sandstorm_website/htdocs/
env[FLOW_CONTEXT] = Production
env[FLOW_REWRITEURLS] = 1'
includeDefaultConfiguration false
extraConfiguration '
location ~ "^/_Resources/Persistent/" {
rewrite "(.{40})/.+\.(.+)" /_Resources/Persistent/$1.$2 break;
rewrite "([a-z0-9]+/(.+/)?[a-f0-9]{40})/.+\.(.+)" /_Resources/Persistent/$1.$2 break;
}
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~* \.(jpg|jpeg|gif|css|png|js|ico)$ {
access_log off;
expires max;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment