diff options
author | vasraz <vasyl.razinkov@est.tech> | 2022-02-09 15:55:38 +0000 |
---|---|---|
committer | Michael Morris <michael.morris@est.tech> | 2022-02-09 17:36:39 +0000 |
commit | 2dca3ece8e8438cb15bbaa962d3adc8d729ed785 (patch) | |
tree | c4d8d550b2fceb86a3d83505042e7ce9d903a094 /catalog-fe/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/templates | |
parent | 23d80344ef3812a7efba7b48f81ff120a7c612c4 (diff) |
Redirect root URL to sdc1
Change-Id: I792cf2bfbb2f8f1e891d30048ff63acefac3604e
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
Issue-ID: SDC-3877
Diffstat (limited to 'catalog-fe/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/templates')
-rw-r--r-- | catalog-fe/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/templates/default/FE-jetty-rewrite.yaml.erb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/catalog-fe/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/templates/default/FE-jetty-rewrite.yaml.erb b/catalog-fe/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/templates/default/FE-jetty-rewrite.yaml.erb new file mode 100644 index 0000000000..e0862a5bfd --- /dev/null +++ b/catalog-fe/sdc-frontend/chef-repo/cookbooks/sdc-catalog-fe/templates/default/FE-jetty-rewrite.yaml.erb @@ -0,0 +1,19 @@ +<?xml version="1.0"?><!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_3.dtd"> +<Configure id="Server" class="org.eclipse.jetty.server.Server"> + <Ref refid="Rewrite"> + <Call name="addRule"> + <Arg> + <New class="org.eclipse.jetty.rewrite.handler.RedirectPatternRule"> + <Set name="pattern" type="String"/> + <Set name="location">/sdc1</Set> + </New> + </Arg> + </Call> + </Ref> + <!-- ===================== --> + <!-- DefaultHandler config --> + <!-- ===================== --> + <Ref id="DefaultHandler"> + <Set name="showContexts">false</Set> + </Ref> +</Configure> |