Skip to content

Instantly share code, notes, and snippets.

@dariok
Created September 28, 2021 13:37
Show Gist options
  • Save dariok/8abf4391fb82722415422d58cbfaaac9 to your computer and use it in GitHub Desktop.
Save dariok/8abf4391fb82722415422d58cbfaaac9 to your computer and use it in GitHub Desktop.
wdb+: nginx rewrite for shorter URLs
location ~ / {
proxy_pass https://localhost:8443;
rewrite ^/(view|start|query|error).html$ /exist/apps/edoc/$1.html last;
rewrite ^/data/(.*)$ /exist/apps/edoc/data/$1 last;
rewrite ^/rest/(.*)$ /exist/restxq/edoc/$1 last;
rewrite ^/(.shared|resources)/(.*)$ /exist/apps/edoc/resources/$2 last;
rewrite ^/login$ /exist/apps/edoc/login last;
proxy_cookie_path ~*^/.* /;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment