我正在默认 tomcat 安装(ubuntu 服务器发行版)下安装 Artifactory ( http://www.jfrog.com/products.php )。我创建一个包含以下内容的/etc/tomcat6/Catalina/localhost/artifactory.xml 文件:
<Context path="/maven" docBase="${artifactory.home}/webapps/artifactory.war" debug="0">
<Manager className="org.apache.catalina.session.PersistentManager" saveOnRestart="false"/>
</Context>
我希望在 http://serverhostname:8080/maven 下提供 Artifactory ,但它在 http://serverhostname:8080/artifactory 下提供服务反而。有什么线索吗?
最佳答案
Context
docs声明将使用文件的基本名称,因此很可能会忽略 path
属性。
关于Tomcat 的 Web 应用程序上下文路径不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6623586/