我试图通过Webdav提供一些samba共享,并且有很多关于davenport的引用(http://davenport.sourceforge.net/),但是关于如何使用Tomcat进行设置的信息并不多(我没有谁能很好地了解tomcat。)是否有人知道Howto或至少有关如何使用Tomcat配置Davenport的一些基本说明?

最佳答案

自己必须做同样的事情。首先,确保已安装tomcat6,然后将webapp / root文件夹的内容移至davenport文件夹。我将其移至/ usr / share / davenport。最后,在/ etc / tomcat6 / Catalina / localhost中创建一个指向您的文件夹的xml文件。我的想法是这样的:

<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements.  See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License.  You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<Context path="/host-manager"
    docBase="/usr/share/davenport/"
    antiResourceLocking="false" privileged="true" />


无论您以什么名字命名,.xml都是应用程序的路径。因此,davenport.xml意味着您必须使用http://ipaddress:8080/davenport访问它

重新启动tomcat6,您应该可以访问该应用程序。

希望有帮助!

10-08 01:22