如何删除 URL 中的应用程序名称?tomcat + httpd

如何删除 URL 中的应用程序名称?tomcat + httpd

问题描述:

大家

我用 Apache Click Framework 做了一个 web 应用程序,然后把它扔到 httpd 后面的 tomcat 中.

I made a web application by Apache Click Framework, and just throwed it into tomcat behind httpd.

(假设我的域名是 www.domain.com.)所以我可以通过 URL 访问我的应用程序:www.myDomain.com/myApp/pages/login.htm

(assume my domain name is www.domain.com.) So I can access my app by the URL: www.myDomain.com/myApp/pages/login.htm

我的问题是,如何通过 httpd 或 tomcat 中的配置删除此 url 中的myApp"部分?因为我的域名已经有一些像myApp"这样的词.

My questions is, how to remove the "myApp" part in this url by configuration in httpd or tomcat? because my domain name already has some words like "myApp".

只需将您的战争文件命名为 root.war 并将其部署到 tomcat.您可能必须首先删除 tomcat 中预配置的 ROOT/ 目录(如果存在).

Simply name your war file root.war and deploy it to tomcat. You probably have to remove the preconfigured ROOT/ directory in tomcat first, if it exists.