Created
September 28, 2021 13:37
-
-
Save dariok/8abf4391fb82722415422d58cbfaaac9 to your computer and use it in GitHub Desktop.
wdb+: nginx rewrite for shorter URLs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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