Hi friends..
I am trying to upload file in apache http server(Some Url) using WEBDAV sardine concept..I coded for file uploading and Apache server configuration and all.
I wanna do this file Read and Write With authentication.. So,i added .htaccess password file in apache.. When i am trying to upload file with authentication,
file Upload is not happening,But it is prompting authentication for file read operation. and am getting some authorization required error -500 Internal Server Error.. ..
I dont know why i am getting this error.. i think it is not reading my password file,while uploading alone.. I dont know how to clear this error..
and when i do the same file upload operation without authentication,then file upload is working,But,it is not prompting authentication for file Read..

I configured my apache http server 2.2 using below Link


This is my httpd-dav.conf file

Alias /sites "E:/Apache Software Foundation/Apache2.2/sites"
<Directory "E:/Apache Software Foundation/Apache2.2/sites">

DavLockDB "E:/Apache Software Foundation/Apache2.2/var/DavLock"

DAVMinTimeout 600

Alias /sites "E:/Apache Software Foundation/Apache2.2/sites"
<Directory "E:/Apache Software Foundation/Apache2.2/sites">

Dav On

AllowOverride None
Options None

Order Allow,Deny
Order deny,allow
Deny from
Allow from

AuthType Digest
AuthName DAV-upload

Options Indexes

Options Indexes MultiViews FollowSymLinks

AuthUserFile "C:/Program Files/user.passwd"

AccessFileName "C:/Program Files/user.passwd"

AuthDigestProvider file
AllowOverride None

Allow universal read-access, but writes are restricted
to the admin user.


require user admin

require valid-user

This is my htaccess password file

admin:DAV-upload:encrypted pwd
Nagu:DAV-upload:encrypted pwd
Prashant:DAV-upload:encrypted pwd

I enabled Following LoadModule and Include Statement in my httpd.conf by referring below link


LoadModule alias_module modules/mod_alias.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule authn_file_module modules/mod_authn_file.so
LoadModule dav_module modules/mod_dav.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule dav_lock_module modules/mod_dav_lock.so
LoadModule setenvif_module modules/mod_setenvif.so

Distributed authoring and versioning (WebDAV)

Include conf/extra/httpd-dav.conf

Pls help dude.. Thanks in advance..

Recommended Answers

All 4 Replies

kind off think you're asking this in the wrong forum ..

Oh.. thnx frnd.. Can you plz suggest me other forums,who can solve for my server problem?


just check through the above links to subfora.

Sorry Dude.. I couldn't get you.. can you pls explain me clearly??

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.