Re: WebDAV sort of works

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 10/08/2013 8:19 AM, "LuKreme" <kremels@xxxxxxxxx> 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@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>
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?


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux