Skip to content

Instantly share code, notes, and snippets.

@regenrek
Created March 16, 2015 13:22
Show Gist options
  • Save regenrek/1146e0e2217832fd0df5 to your computer and use it in GitHub Desktop.
Save regenrek/1146e0e2217832fd0df5 to your computer and use it in GitHub Desktop.
location ~ .(scripts|styles|images|views)/(.*)/(.*)$ {
try_files $uri $uri/ /../frontend/app/$1/$2/$3;
}
location ~ .(scripts|styles|images|views)/(.*)$ {
try_files $uri $uri/ /../frontend/app/$1/$2;
}
location ~ .(bower_components)/(.*)/(.*)$ {
try_files $uri $uri/ /../frontend/$1/$2/$3;
}
location ~ .(bower_components)/(.*)$ {
try_files $uri $uri/ /../frontend/$1/$2;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment