Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Question about and require

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Virtual hosts  
Author Message
Bill Greene

External


Since: Apr 25, 2005
Posts: 1



(Msg. 1) Posted: Mon Apr 25, 2005 10:14 am
Post subject: Question about and require
Archived from groups: alt>apache>configuration (more info?)

Hi!

I'm trying to understand how <Limit> (or <LimitExcept>) and require
interact. I'm trying to set up a WebDAV directory with subdirectories
for users. Access to any part of the directory requires a password.
The subdirectories are only to be accessible by the respective users,
and only the admin user can create or modify something in the main
directory. Here's my latest attempt:

 ><Location /dav>
 > DAV On
 > AllowOverride None
 > Options None
 > AuthName "DAV"
 > AuthType Basic
 > AuthUserFile /var/www/hpw
 > <LimitExcept GET HEAD OPTIONS>
 > Require user admin
 > </LimitExcept>
 > Require valid-user
 ></Location>
 ><Location /dav/user1>
 > require user user1
 ></Location>
 ><Location /dav/user2>
 > require user user2
 ></Location>

This almost works - you must provide a user name or password for
access, and only user1 can access the /dav/user1 directory. But any
logged in user can change or modify files in the /dav directory. It
appears as though the "require valid user" takes precedence over the
limit block. But if I remove it, only admin can log in.

I've also tried multiple <Limit> blocks for the location without any
luck.

Thanks!

-- bill<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Question about and require 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
problem with Require - hello there ! i wanna restrict the content of a certain dir so i ve created a user file with htpasswd -c file user1 then i ve put <Directory /usr/local/apache2/htdocs/dir> AuthName test AuthType Basic AuthUserFile file Require user </Directo...

Require password for all but one directory? - I have a somewhat odd directory structure for a web site: There is one directory (call it "foo") where I want to have basic password authentication working for all of foo's subdirectories >>except one<<, which needs to be wide open ...

AuthType require password only? - Is there a way to have the Apache authorization dialog prompt just for a password, rather than a user id and password? I have the current htaccess script: Thanks! AuthUserFile private.pass AuthGroupFile /dev/null AuthName 'Protected Area' AuthType..

mod_mp3 require recompile? - I've installed mod_mp3. I added the directives to httpd.conf (Apache 1.3) as specified, but it doesn't recognize any of the mod_mp3 ones. I've uncommented the mod_mp3 line in the mod declaration line. So do I have to recompile Apache to get this modul...

Authenticating with a 'dynamic' Location and Require direc.. - Hi all, I am trying to obtain a correct Apache configuration for the following scenario: I have a document repository with directories for different customers and different projects. The format is the following:..
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]