Давенпорт на кота - PullRequest
0 голосов
/ 11 апреля 2011

Я пытаюсь сделать некоторые общие ресурсы samba доступными через Webdav, и есть много ссылок на davenport (http://davenport.sourceforge.net/),, однако не так много информации о том, как настроить это с Tomcat (я не очень хорошо знаю tomcat.)Кто-нибудь знает Howto или хотя бы некоторые основные инструкции о том, как настроить Davenport с Tomcat?

1 Ответ

1 голос
/ 27 мая 2011

Просто должен был сделать то же самое сам. Сначала убедитесь, что tomcat6 установлен, затем переместите содержимое папки webapp / root в папку для davenport. Я переместил его в / usr / share / davenport. Наконец, создайте XML-файл в / etc / tomcat6 / Catalina / localhost, который указывает на вашу папку. У меня было так:

<?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, и вы сможете получить доступ к приложению.

Надеюсь, это поможет!

...