Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question, hosting files along with webdav #36

Open
jcalfee opened this issue May 21, 2022 · 0 comments
Open

Question, hosting files along with webdav #36

jcalfee opened this issue May 21, 2022 · 0 comments

Comments

@jcalfee
Copy link

jcalfee commented May 21, 2022

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>
+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant