在tomcat的达文波特

时间:2011-04-11 14:43:57

标签: tomcat webdav ubuntu-10.04

我试图通过Webdav提供一些samba共享,并且有许多对davenport(http://davenport.sourceforge.net/)的引用,但是没有太多关于如何使用Tomcat设置它的信息(我不太了解tomcat。)有没有人知道如何使用Tomcat配置Davenport的Howto或至少一些基本指令?

1 个答案:

答案 0 :(得分:1)

我必须自己做同样的事情。首先,确保安装了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,您应该可以访问该应用程序。

希望有所帮助!