httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kailas Narendran" <>
Subject [users@httpd] VirtualHosts and WebDAV
Date Sat, 15 Nov 2008 00:53:38 GMT
Hi!  I'm trying to get webdav folders to work on my webserver.  I've got 2
virtual hosts served off one IP.

I've enabled virtual hosts by the instructions by creating a file with the
host name in /etc/apache2/sites-available/

(for example)


with contents that look like

<VirtualHost *>

        DirectoryIndex index.php
        DocumentRoot /var/www/wordpress/

( on the other one).

I've enabled WebDAV according to the instructions at

The webDAV folder is to be accessible under by (not
it didn't seem to work, as i can get to without any
authentication, and i can't get my windows network place to authenticate on

I figured this probably required some changes from the exact instructions at
that website, and required me to add what the site instructed me to put in
httpd.conf in the virtual host file i created in

So, i changed the file for to look like this:

<VirtualHost *>

        DirectoryIndex main.php
        DocumentRoot /var/www

        ## Location of DavLock File
        DavLockDB /usr/share/apache2/var/DavLock

        ## setup myWebDav Directory
        <Directory "/var/www/myWebDAV">
        Dav On
        AuthName "WebDAV Login"
        AuthType Basic
        AuthUserFile /etc/apache2/.htpasswd
        <LimitExcept GET HEAD OPTION POST>
                require valid-user
        Order allow,deny
        Allow from all


That didn't work either.  anyone have any ideas what might be wrong?

Thanks in advance.


View raw message