2011-04-11 1 views
0

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

+0

Неверный стек, извините. Но если у вас есть что-нибудь, напишите! –

ответ

1

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

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

 Смежные вопросы

  • Нет связанных вопросов^_^