@@ -0,0 +1,826 @@
+/**%0A * @license%0A * Copyright 2018 The FOAM Authors. All Rights Reserved.%0A * http://www.apache.org/licenses/LICENSE-2.0%0A */%0A%0Apackage foam.nanos.servlet;%0A%0Aimport javax.servlet.RequestDispatcher;%0Aimport javax.servlet.ServletException;%0Aimport javax.servlet.http.HttpServlet;%0Aimport javax.servlet.http.HttpServletRequest;%0Aimport javax.servlet.http.HttpServletResponse;%0Aimport java.io.IOException;%0A%0A/**%0A * Typically used to alias short paths like %22/%22 or %22/merchant%22 to specific services.%0A */%0Apublic class RedirectServlet%0A    extends HttpServlet%0A%7B%0A  @Override%0A  protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException %7B%0A    String path = getServletConfig().getInitParameter(%22path%22);%0A    RequestDispatcher view = req.getRequestDispatcher(path);%0A    view.forward(req, resp);%0A  %7D%0A%7D%0A

Add redirect sevlet, a non tomcat specific version of the Tomcat SubdomainRouter