Skip to content

Commit

Permalink
Update sample.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
pannal committed Feb 2, 2020
1 parent 6a762cc commit 5842b38
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions deployment/nginx/sample.conf
Expand Up @@ -14,7 +14,9 @@ server {
}

location ^~ /kitana/static/ {
root /kitana/folder/;
# this is the poor man's approach; ./kitana has to exist in *root*;
# if root is /peter, /peter/kitana/static has to exist for this simple config to wok.
root /ROOT_WITHOUT_SLASH_LOWERCASE_KITANA/;

# versioned static rewrite
rewrite "^(\/kitana\/static\/(css|js|img)\/)(\w+)\.\w{7}\.(\w{2,4})$" $1$3.$4 last;
Expand All @@ -24,4 +26,4 @@ server {
proxy_pass http://127.0.0.1:31337;
include proxy.conf;
}
}
}

0 comments on commit 5842b38

Please sign in to comment.