Re: A question about webdav

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

 



Hi.

One does not really know where to start.. ;-)

Maybe you should provide some basic details about the Operating System under which you are trying this, the version of Apache you are using, and what "http://ip/"; really means. Is "ip" the IP address of your host ?

Some notes :
1) I do not believe that <Directory "/i-data/md0/*"> is correct. It should probably just be <Directory "/i-data/md0">.
Or else something like <DirectoryMatch "/i-data/md0/.*">

2) the fact that the disk directory "/i-data/md0/music" has permissions 0777 is not really relevant to the problem as you explain it. It the disk directory to which Apache would try to write (later, when a file is being uploaded) or from which it would try to read, did not have the appropriate permissions, you would get an error message from Apache, but that would happen later than your current issue.

3) The reason why you get a login dialog has to do with some form of Apache authentication required for access to that directory. That may be because another directory (or Location) higher-up in the hierarchy is requiring such an authentication, and it is "inherited" by this directory. But, in the absence of more details about your case, it is difficult to tell.

4) What do you mean by "accessing this directory via WebDav" ? which "client" are you really using ? Are you on a Windows workstation, trying to set up a "web folder" ? is the Apache server hosted on the same workstation or a separate server ?

5) do you know that enabling Dav on a web server, without really understanding what you are doing in terms of security and authentication, can allow someone to download (or overwrite) your whole filesystem ?


ChiaTzung Liu wrote:
Hi..

I set my configuration of apache as following (one the part about
webdav)...

===========================================

DAVLockDB /tmp/lockdb

<Directory "/i-data/md0/*">

  Options All

  Order allow,deny

  Allow from all

  Dav on

</Directory>

===========================================

It is VERY simple, right? But when I access it, apache will ask me
username and password.

Why? For example, I have a folder "/i-data/md0/music", and its
permission is 0777.
And I also establish a link http://ip/music to point
"/i-data/md0/music".

Now, if I access http://ip/music by my web browser, it's ok. However, I
will be asked to enter username and password when I access it by WebDav.

Anyone can help me? Thx.




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[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