Tomcat - 多个webapps文件夹 [英] Tomcat - Multiple webapps folders

查看:286
本文介绍了Tomcat - 多个webapps文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



如何定义这些文件?



是否可以限制一个文件夹只是domain.com的应用程序,而不是其他域名。



谢谢

解决方案

看看 conf / server.xml

 <主机名=localhostdebug =0appBase =webapps
unpackWARs =trueautoDeploy =true
xmlValidation =falsexmlNamespaceAware =false>

您可以嵌套< Host> 元素在< Engine> 元素中,具有不同的虚拟主机,不同的 appBase 等等。 / p>

这里是文档在<主机>元素。


Is it possible to have multiple folders where I can place applications to be deployed?

How are these defined?

And is it possible to restrict one folder to just be applications for "domain.com" and no other domain.

Thanks

解决方案

Take a look at conf/server.xml:

  <Host name="localhost" debug="0" appBase="webapps"
   unpackWARs="true" autoDeploy="true"
   xmlValidation="false" xmlNamespaceAware="false">

You can nest <Host> elements within the <Engine> element and have different ones corresponding to different virtual hosts, different appBase's etc.

Here's the documentation on the <Host> element.

这篇关于Tomcat - 多个webapps文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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