simplifying webdav config on apache

This is a discussion on simplifying webdav config on apache within the Linux Web Servers forums, part of the Web Server and Related Forums category; Hi All, I'm trying to simplify my apache webdav config so I don't have to have individual sections ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-15-2007
blamtastic@gmail.com
 
Posts: n/a
Default simplifying webdav config on apache

Hi All,

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

When someone connects to access webdav they need to use the url
https://a.b.com/wd/<username here>. For instance user 'bob' would go
to 'https://a.b.com/wd/bob'. 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 1.2.3.0/255.255.255.0
DAV On
AuthType Basic
AuthName "WebDAV Restricted"
AuthUserFile /data/web/root/auth/htpasswd
SetEnvIf Request_URI "^/wd/(.*)" myusername=$1
<LimitExcept GET HEAD OPTIONS>
Require user myusername
</LimitExcept>
</Location>
--

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

--
[Wed Nov 14 16:41:35 2007] [error] [client 1.2.3.43] 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
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:16 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0