Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-15-2007, 11:09 AM   #1
LQ Newbie
Registered: Dec 2005
Posts: 1

Rep: Reputation: 0
trying to simplify webdav user configuration with setenvif

Hi All,

I'm trying to simplify my apache webdav config so I don't have to have individual sections for each my users in httpd.conf file.

When someone connects to access webdav they need to use the url<username here>. For instance user 'bob' would go to ''. I want to be able to pull the string 'bob' off the end of the url and use it in a 'Require user ....' statement. My attempt can be seen below:

Alias /wd /var/spool/webdav
<Location /wd>
Order Deny,Allow
Deny from all
Allow from
AuthType Basic
AuthName "WebDAV Restricted"
AuthUserFile /data/web/root/auth/htpasswd
SetEnvIf Request_URI "^/wd/(.*)" myusername=$1
Require user myusername

Unfortunately this doesn't work and I get the error message:

[Wed Nov 14 16:41:35 2007] [error] [client] access to /wd/bob/ failed, reason: user bob not allowed access

If I go back to my old config which just excludes the SetEnvIf line and puts 'bob' in place of the environment variable 'myusername' I log in just fine (I also change the 'Location' statment to look in '/wd/bob') That is to say the problem isn't in my htpasswd file.

Any suggestions on where I'm going wrong?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
WebDAV - 'client denied by server configuration' error jamesrh Linux - Software 2 03-11-2015 10:19 AM
webdav configuration error !! hitesh_linux Linux - Networking 5 12-25-2004 04:10 AM
setenvif module not loading jonathanw Linux - Newbie 0 04-27-2004 11:10 AM
webdav configuration dominant Linux - General 0 04-21-2004 09:25 AM
WebDAV configuration problem Apollo77 Linux - General 5 12-22-2003 12:31 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:04 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration