Alexander Foken: Apache - http.conf - mod_dav

Beitrag lesen

Moin Moin !

Anleitungen wirst Du entweder auf der Apache-Webseite oder der mod_dav-Webseite finden, beide kannst Du über Google finden.

Folgende Änderungen an httpd.conf haben aus meinem "normalen" Apachen einen DAV-fähigen Apachen mit CGI und SSI gemacht:

diff -Nau httpd.conf.default httpd.conf
--- httpd.conf.default  2003-03-03 20:29:41.000000000 +0100
+++ httpd.conf  2003-03-03 21:39:00.000000000 +0100
@@ -225,6 +225,7 @@
 LoadModule auth_module        libexec/mod_auth.so
 LoadModule setenvif_module    libexec/mod_setenvif.so
 LoadModule roaming_module     libexec/mod_roaming.so
+LoadModule dav_module         libexec/libdav.so

#  Reconstruction of the complete module list from all available modules
 #  (static and shared ones) to achieve correct module execution order.
@@ -254,6 +255,7 @@
 AddModule mod_so.c
 AddModule mod_setenvif.c
 AddModule mod_roaming.c
+AddModule mod_dav.c

#
 # ExtendedStatus controls whether Apache will generate "full" status
@@ -300,7 +302,7 @@
 #  don't use Group "#-1" on these systems!
 #
 User wwwrun
-Group "#-1"
+Group wwwrun

#
 # ServerAdmin: Your address, where problems with the server should be
@@ -844,13 +846,13 @@
     #
     # To use CGI scripts:
     #
-    #AddHandler cgi-script .cgi
+    AddHandler cgi-script .cgi

#
     # To use server-parsed HTML files
     #
-    #AddType text/html .shtml
-    #AddHandler server-parsed .shtml
+    AddType text/html .shtml
+    AddHandler server-parsed .shtml

#
     # Uncomment the following line to enable Apache's send-asis HTTP file
@@ -1009,6 +1011,22 @@
 #</IfModule>
 # End of proxy directives.

+DAVLockDB /opt/apache_dav/locks/DAVLock
+
+<Directory "/opt/apache_dav/htdocs/davarea/">
+        Options All
+        AllowOverride All
+       DAV On
+       AuthType Basic
+       AuthName "Restricted WebDAV Directory"
+       AuthUserFile /opt/apache_dav/conf/users
+        Order allow,deny
+        Allow from all
+       Require valid-user
+</Directory>
+
+
 ### Section 3: Virtual Hosts
 #
 # VirtualHost: If you want to maintain multiple domains/hostnames on your

Alexander

--
Nein, ich beantworte keine Fragen per eMail. Dafür ist das Forum da.
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so!"