Web 应用程序的 Tomcat 上下文路径不起作用
我正在安装 Artifactory (http://www.jfrog.com/products.php)默认的 tomcat 安装(ubuntu 服务器发行版)。我创建一个包含以下内容的 /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 下提供artifactory ://serverhostname:8080/maven ,但它在 http://serverhostname:8080/artifactory 代替。有什么线索吗?
I'm installing Artifactory (http://www.jfrog.com/products.php) under a default tomcat installation (ubuntu server distribution). I create a /etc/tomcat6/Catalina/localhost/artifactory.xml file with the following contents:
<Context path="/maven" docBase="${artifactory.home}/webapps/artifactory.war" debug="0">
<Manager className="org.apache.catalina.session.PersistentManager" saveOnRestart="false"/>
</Context>
I want artifactory to be served under http://serverhostname:8080/maven , but it gets served under http://serverhostname:8080/artifactory instead. Any clues?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Context
文档指出将使用文件的基本名称,因此很可能会忽略path
属性。The
Context
docs state that the base name of the file will be used so it's likely that thepath
attribute is simply ignored.