Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 92085 invoked by uid 500); 29 Nov 2001 08:05:40 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 92074 invoked from network); 29 Nov 2001 08:05:40 -0000 Received: from besakih.ntt.net.id (HELO ntt.net.id) (202.171.1.130) by daedalus.apache.org with SMTP; 29 Nov 2001 08:05:40 -0000 Received: (qmail 91605 invoked by uid 201); 29 Nov 2001 08:05:46 -0000 Received: from unknown (HELO eko) (202.171.15.253) by besakih.ntt.net.id with SMTP; 29 Nov 2001 08:05:46 -0000 Message-ID: <020601c178ac$9e6483a0$1affa8c0@eko> From: "Stefanus Eko Yulianto" To: References: Subject: Re: Password Directory Date: Thu, 29 Nov 2001 15:05:32 +0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I already configure like your configuration but there is an error like this : -------------------------- Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, you@your.address and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. ------------------------- here is my httpd.conf configurations RewriteEngine on RewriteCond %{HTTP_HOST} !^$ RewriteRule .* https://192.168.255.20/users/%{REMOTE_USE} Options Indexes MultiViews AllowOverride AuthConfig Order allow,deny Allow from all AuthName Users AuthType Basic Require valid-user ------------------------ and in each directory in .htaccess file AuthName "restricted stuff" AuthType Basic AuthUserFile /usr/local/etc/apache/users require user eko --------------------------- but still cannot working Please give me advise Thanks To: Sent: Thursday, November 29, 2001 12:15 PM Subject: Re: Password Directory > > Hi Stefanus, > There are couple of ways you can do this. YOu can actually write a PHP > script and control access of each directory using .htaccess > > I more sophisticated way of doing is using mod_rewrite and couple of of > directory containers in httpd.conf - This is only possible if you have > administrative access to HTTP deamon. > > Here is how I would do it. > > I would make the following entries in httpd.conf > > > > RewriteEngine on > RewriteCond #add some condition here# > RewriteRule .* https://davtest1.seagate.com/users/%{REMOTE_USE} > > order allow,deny > allow from all > > # Below define your favorite mechanism for authentication (e.g. LDAP, NIS, MySQL, or htpasswd files etc.....) > #AuthName Users > #AuthType Basic > # > # Require valid-user > # > > > Now define user authentication requirements for each user directory. > > # User 01 > Require user 224706 > > > > # User 02 > Require user 224706 > > > > # User 03 > Require user 224706 > > > Then create directory for each user under {users} directory. > > Now when a users visit the following url > > http://www.yoursite.dom/users > > He will be prompted for htaccess style authenticaton. Based on the userid, mod_rewrite will re-direct the client to appropriate directory. > > e.g. if user03 logs in, mod_rewrite will automatically re-direct him to http://www.yoursite.dom/users/user03 > > Now this can be all done using .htacess file as well. > > if you have run into any problems, let us know. > > In Peace, > Saqib Ali > http://www.stonebeat.org <------ WebDAV discussion forum > > > > > > > > > "Stefanus Eko Yulianto" on 11/28/2001 07:52:58 PM > > Please respond to users@httpd.apache.org > > To: > cc: > > Subject: Password Directory > > > Dear all, > > > I use apache 1.3 on my freebsd 4.3 server. > I have 10 user who each user have own private directory. How to configure > each user only can see their web page base on password. > > TIA > > > eko > > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server Project. > See for more info. > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > For additional commands, e-mail: users-help@httpd.apache.org > > > > > > > > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server Project. > See for more info. > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > For additional commands, e-mail: users-help@httpd.apache.org > > > --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org