如何删除 URL 中的应用程序名称?tomcat + httpd [英] How to remove the application name in URL? tomcat + httpd

查看:26
本文介绍了如何删除 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.

这篇关于如何删除 URL 中的应用程序名称?tomcat + httpd的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆