You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by LuKreme <kr...@kreme.com> on 2013/08/10 00:19:11 UTC

[users@httpd] WebDAV sort of works

I have the following structure in /etc/httpd/extras/httpd-vhost.conf (apache 2.4)

<virtualhost *:80>
  ServerName webdav.example.com
  DocumentRoot /usr/local/www/
  DavLockDB /tmp/DavLock.rotdav
  <location />
    DAV On
    AuthType digest
    AuthName Root
    AuthUserFile /usr/local/www/.htdigestpass
    Options All
    ForceType text/plain
    <Limit PUT POST DELETE PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
       require user user1
       require user user2
    </Limit>
  </location>
</virtualhost>

I can connect and I see all the folders that are in /usr/local/www/ but if I open one of those folders, I don't get anything at all.

Now, the .htdigestpass file is pretty old, and was created based on instructions I can't find right now, but the format is user:hash instead of user:realm:0xHEX, if that matters. Like this:

user:$1$yjwfJ/..$5G0tjtmq854aoa0ZZzZMo/

In a file in /etc/httpd/users/ I have a nearly identical directive:

<virtualhost *:80>
   ServerName webdav2.example.net
   DocumentRoot /home/user1/Sites
   ErrorLog /home/user1/logs/dav-error.log
   CustomLog /home/user1/logs/dav-access.log combined
   DavLockDB /tmp/DavLock.u1
   <location />
     DAV On
     AuthType digest
     AuthName user1dav
     AuthUserFile /www/Covisp/.htdavpass
     Options All
     ForceType text/plain
     <Limit PUT POST DELETE PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
        require valid-user
     </Limit>
   </location>
</virtualhost>

This htdavpass was created using 

htdigest -c /home/mbutler/.htdavpass user1dav myadmin

so the htdavpass file looks like this
myadmin:user1dav:30b688d7ac...

On this webdav, I cannot connect.

The hash above is not hex code like the one from htdavpass.

Nothing (and I do mean *nothing* is logged to the dav-error.log, and nothing of the slightest use is logged to access.


-- 
You are twisted and sick; I like that in a person.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] Re: WebDAV sort of works

Posted by LuKreme <kr...@kreme.com>.
On Aug 10, 2013, at 3:37, Igor Cicimov <ic...@gmail.com> wrote:
> First, the statements are case sensitive so location should be Location and virtualhost should be VirtualHost.

What? Since when?


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] WebDAV sort of works

Posted by Igor Cicimov <ic...@gmail.com>.
On 10/08/2013 8:19 AM, "LuKreme" <kr...@kreme.com> wrote:
>
> I have the following structure in /etc/httpd/extras/httpd-vhost.conf
(apache 2.4)
>
> <virtualhost *:80>
>   ServerName webdav.example.com
>   DocumentRoot /usr/local/www/
>   DavLockDB /tmp/DavLock.rotdav
>   <location />
>     DAV On
>     AuthType digest
>     AuthName Root
>     AuthUserFile /usr/local/www/.htdigestpass
>     Options All
>     ForceType text/plain
>     <Limit PUT POST DELETE PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
>        require user user1
>        require user user2
>     </Limit>
>   </location>
> </virtualhost>
>
> I can connect and I see all the folders that are in /usr/local/www/ but
if I open one of those folders, I don't get anything at all.
>
> Now, the .htdigestpass file is pretty old, and was created based on
instructions I can't find right now, but the format is user:hash instead of
user:realm:0xHEX, if that matters. Like this:
>
> user:$1$yjwfJ/..$5G0tjtmq854aoa0ZZzZMo/
>
> In a file in /etc/httpd/users/ I have a nearly identical directive:
>
> <virtualhost *:80>
>    ServerName webdav2.example.net
>    DocumentRoot /home/user1/Sites
>    ErrorLog /home/user1/logs/dav-error.log
>    CustomLog /home/user1/logs/dav-access.log combined
>    DavLockDB /tmp/DavLock.u1
>    <location />
>      DAV On
>      AuthType digest
>      AuthName user1dav
>      AuthUserFile /www/Covisp/.htdavpass
>      Options All
>      ForceType text/plain
>      <Limit PUT POST DELETE PROPFIND PROPPATCH MKCOL COPY MOVE LOCK
UNLOCK>
>         require valid-user
>      </Limit>
>    </location>
> </virtualhost>
>
> This htdavpass was created using
>
> htdigest -c /home/mbutler/.htdavpass user1dav myadmin
>
> so the htdavpass file looks like this
> myadmin:user1dav:30b688d7ac...
>
> On this webdav, I cannot connect.
>
> The hash above is not hex code like the one from htdavpass.
>
> Nothing (and I do mean *nothing* is logged to the dav-error.log, and
nothing of the slightest use is logged to access.
>
>
> --
> You are twisted and sick; I like that in a person.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
First, the statements are case sensitive so location should be Location and
virtualhost should be VirtualHost. But that might be copy-paste typo i
guess. Second, i would remove the Limit and test if all working as expected
and then start playing with restrictions. And third, do you have access
allowed for the second host at all and does apache user have write
permissions on the user1 home dir?