English 中文(简体)
Tomcat6 -> 如何使项目扎根?
原标题:Tomcat6 -> how to put a project into the root folder?

我有一台Tomcat6服务器,安装在1台六氯环己烷服务器上。 The structure of the webappsDirectory is:

  • examples
  • host-manager
  • manager
  • ROOT
  • sample

我有一份网上申请,在我的一个地方厅上播放。 我创建了一个战争文件My Project.war,并将其输入网络应用程序目录。 重新启用托马托克服务器,战争被提取,我有这种结构:

  • examples
  • host-manager
  • manager
  • MyProject
  • ROOT
  • sample

http://mysubdomain.mysite.com:80/ 我从Tomcat开始一页。

如果你用一个网络浏览器重新看到这个网页,那就意味着你成功地安装了Tomcat。 !!

我拿到我的项目页。

我想的是,我可以使用URL 代码,而不是http://mysubdomain.mysite.com:80/Myproject/

我如何能够这样做?

最佳方面。

Update I have this in my server.xml:

<Host name="localhost"  appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
    <Context docBase="MyProject" path="/" />
</Host>

我走了一条空洞和/或重新启用Tocat的道路。 两者都不可行。 主要目录显示,我不是我的项目,而是通卡开首页。 该项目只能与......:8080/My Project/

最佳回答

删除ROOT 倍,更名为My Project.war ROOT.war并重启。

也可以这样做,在<代码><Host> 条目/conf/server.xml内添加以下线。

<Context docBase="MyProject" path="" />
问题回答

暂无回答




相关问题
Signed executables under Linux

For security reasons, it is desirable to check the integrity of code before execution, avoiding tampered software by an attacker. So, my question is How to sign executable code and run only trusted ...

encoding of file shell script

How can I check the file encoding in a shell script? I need to know if a file is encoded in utf-8 or iso-8859-1. Thanks

How to write a Remote DataModule to run on a linux server?

i would like to know if there are any solution to do this. Does anyone? The big picture: I want to access data over the web, using my delphi thin clients. But i´would like to keep my server/service ...

How can I use exit codes to run shell scripts sequentially?

Since cruise control is full of bugs that have wasted my entire week, I have decided the existing shell scripts I have are simpler and thus better. Here is what I have so far svn update /var/www/...

Good, free, easy-to-use C graphics libraries? [closed]

I was wondering if there were any good free graphics libraries for C that are easy to use? It s for plotting 2d and 3d graphs and then saving to a file. It s on a Linux system and there s no gnuplot ...

热门标签