BytemarkHosting / docker-webdav

Docker image for running an Apache WebDAV server
MIT License
350 stars 166 forks source link

Question, hosting files along with webdav #36

Open jcalfee opened 2 years ago

jcalfee commented 2 years ago

I would like to host a site on the same domain as webdav. It appears your configuration supports this. I don't mind that the html files are public. Is this as simple as aliasing the webdav path and allowing html? Here is my failed attempt, I get access denied for the public www directory. A simple tip or example would go a long ways, this is very difficult for me to debug on the Apache side. Thank you!

--- a/2.4/conf/conf-available/dav.conf
+++ b/2.4/conf/conf-available/dav.conf
@@ -1,5 +1,5 @@
 DavLockDB "/var/lib/dav/DavLock"
-Alias / "/var/lib/dav/data/"
+Alias /data "/var/lib/dav/data/"
 <Directory "/var/lib/dav/data/">
   Dav On
   Options Indexes FollowSymLinks
diff --git a/2.4/conf/sites-available/default.conf b/2.4/conf/sites-available/default.conf
index e309338..d39bb1e 100644
--- a/2.4/conf/sites-available/default.conf
+++ b/2.4/conf/sites-available/default.conf
@@ -1,9 +1,13 @@
 <VirtualHost *:80>
   ServerName localhost
   DocumentRoot "/var/www/html/"
-  <Directory "/var/www/html/">
-    Require all denied
-  </Directory>
+
+  Alias /site "/var/www/html"
+  # <Directory "/var/www/html/">
+  #   Require all denied
+  # </Directory>
+