Skip to content

Instantly share code, notes, and snippets.

View matthias-chlechowitz's full-sized avatar

Matthias Chlechowitz matthias-chlechowitz

View GitHub Profile
@matthias-chlechowitz
matthias-chlechowitz / gist:8b1d2be2923af248dd0f2e2cb201437c
Created September 14, 2016 16:02
remove fragment from file path in nginx location block
call:
$domain/sym_assets/**/*.jpg
desired result:
$root_dir/path/on/server/**/*.jpg
$root is different than place on server
location ~ /sym_assets {
rewrite ^/sym_assets(/.*)$ $1 last;