Jetty 在码头部署多个项目(war)
我使用的是默认情况下Jetty附带的Solr。使用Jetty 在码头部署多个项目(war),jetty,solr4,Jetty,Solr4,我使用的是默认情况下Jetty附带的Solr。使用solr jetty context.xml文件中的以下配置部署solr.war <Configure class="org.eclipse.jetty.webapp.WebAppContext"> <Set name="contextPath"><SystemProperty name="hostContext" default="/solr"/></Set> <Set name="
solr jetty context.xml
文件中的以下配置部署solr.war
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
<Set name="contextPath"><SystemProperty name="hostContext" default="/solr"/></Set>
<Set name="war"><SystemProperty name="jetty.home"/>/webapps/solr.war</Set>
<Set name="defaultsDescriptor"><SystemProperty name="jetty.home"/>/etc/webdefault.xml</Set>
<Set name="tempDirectory"><Property name="jetty.home" default="."/>/solr-webapp</Set>
</Configure>
/webapps/solr.war
/etc/webdefault.xml
/solr网络应用程序
现在我想在同一jetty服务器上部署一个自定义html页面,比如“
home.html
”。如何确保“home.html
”页面和solr.war
都同时部署在jetty上。我尝试将home.html
放在webapps文件夹中,但不起作用。将home.html
放在名为root.war
的.war中并部署。您的home.html
文件将在http://.../home.html
而Solr仍将是http://.../solr/
有关参考,请参阅