Mailing List Archive

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 <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Password Directory [ In reply to ]
for the example:

when the user browse to http://www.testonly.com
the server ask for username and password
after the user fill the username and password, server redirect it to the
user private directory
in this case when user fill eko, after that server redirect to
http://www.testonly.com/eko

Can I do it


TIA

----- Original Message -----
From: "Andrew Kenna" <andrewk@stamina.com.au>
To: <users@httpd.apache.org>
Sent: Thursday, November 29, 2001 10:59 AM
Subject: RE: Password Directory


> you need to place a .htaccess file in each of the users directories with
> only that persons username and password in it.
>
> Andrew
>
>
> -----Original Message-----
> From: Stefanus Eko Yulianto [mailto:eko@ntt.net.id]
> Sent: 29, 11, 2001 2:53 PM
> To: users@httpd.apache.org
> 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 <URL:http://httpd.apache.org/userslist.html> 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 <URL:http://httpd.apache.org/userslist.html> 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 <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
RE: Password Directory [ In reply to ]
you need to place a .htaccess file in each of the users directories with
only that persons username and password in it.

Andrew


-----Original Message-----
From: Stefanus Eko Yulianto [mailto:eko@ntt.net.id]
Sent: 29, 11, 2001 2:53 PM
To: users@httpd.apache.org
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 <URL:http://httpd.apache.org/userslist.html> 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 <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
RE: Password Directory [ In reply to ]
umm, yes most likely I've never tried it that way before.

Would it make it easier to just give the person the www.testonly.com/eko and
in that directory it only contains the username/password for eko ?

Question for any apache gurus, is it possible to redirect to a certain url
based on whatever username and password a person enters.

Andrew


-----Original Message-----
From: Stefanus Eko Yulianto [mailto:eko@ntt.net.id]
Sent: 29, 11, 2001 2:58 PM
To: users@httpd.apache.org
Subject: Re: Password Directory


for the example:

when the user browse to http://www.testonly.com
the server ask for username and password
after the user fill the username and password, server redirect it to the
user private directory
in this case when user fill eko, after that server redirect to
http://www.testonly.com/eko

Can I do it


TIA

----- Original Message -----
From: "Andrew Kenna" <andrewk@stamina.com.au>
To: <users@httpd.apache.org>
Sent: Thursday, November 29, 2001 10:59 AM
Subject: RE: Password Directory


> you need to place a .htaccess file in each of the users directories with
> only that persons username and password in it.
>
> Andrew
>
>
> -----Original Message-----
> From: Stefanus Eko Yulianto [mailto:eko@ntt.net.id]
> Sent: 29, 11, 2001 2:53 PM
> To: users@httpd.apache.org
> 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 <URL:http://httpd.apache.org/userslist.html> 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 <URL:http://httpd.apache.org/userslist.html> 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 <URL:http://httpd.apache.org/userslist.html> 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 <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Password Directory [ In reply to ]
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


<Directory /usr/local/apache/htdocs/users>
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
#<Limit GET PUT POST DELETE PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
# Require valid-user
# </Limit>
</Directory>

Now define user authentication requirements for each user directory.
<Directory /usr/local/apache/htdocs/users/user01>
# User 01
Require user 224706
</Directory>

<Directory /usr/local/apache/htdocs/users/user02>
# User 02
Require user 224706
</Directory>

<Directory /usr/local/apache/htdocs/users/user03>
# User 03
Require user 224706
</Directory>

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" <eko@ntt.net.id> on 11/28/2001 07:52:58 PM

Please respond to users@httpd.apache.org

To: <users@httpd.apache.org>
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 <URL:http://httpd.apache.org/userslist.html> 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 <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Password Directory [ In reply to ]
I am sorry in my last message I wrote
<Directory /usr/local/apache/htdocs/users/user01>
# User 01
Require user 224706
</Directory>

it should be

<Directory /usr/local/apache/htdocs/users/user01>
# User 01
Require user user01
</Directory>

You can userid like my previous example only if you are authenticating
against NIS or similar directory service.

http://www.stonebeat.org <---- WebDAV discussion forum




Saqib.N.Ali@seagate.com on 11/28/2001 09:15:47 PM

Please respond to users@httpd.apache.org

To: users@httpd.apache.org
cc:

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


<Directory /usr/local/apache/htdocs/users>
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
#<Limit GET PUT POST DELETE PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
# Require valid-user
# </Limit>
</Directory>

Now define user authentication requirements for each user directory.
<Directory /usr/local/apache/htdocs/users/user01>
# User 01
Require user 224706
</Directory>

<Directory /usr/local/apache/htdocs/users/user02>
# User 02
Require user 224706
</Directory>

<Directory /usr/local/apache/htdocs/users/user03>
# User 03
Require user 224706
</Directory>

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" <eko@ntt.net.id> on 11/28/2001 07:52:58 PM

Please respond to users@httpd.apache.org

To: <users@httpd.apache.org>
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 <URL:http://httpd.apache.org/userslist.html> 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 <URL:http://httpd.apache.org/userslist.html> 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 <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Password Directory [ In reply to ]
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

<Directory "/usr/local/www/data/users">
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


</Directory>

------------------------

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: <users@httpd.apache.org>
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
>
>
> <Directory /usr/local/apache/htdocs/users>
> 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
> #<Limit GET PUT POST DELETE PROPFIND PROPPATCH MKCOL COPY MOVE LOCK
> # Require valid-user
> # </Limit>
> </Directory>
>
> Now define user authentication requirements for each user directory.
> <Directory /usr/local/apache/htdocs/users/user01>
> # User 01
> Require user 224706
> </Directory>
>
> <Directory /usr/local/apache/htdocs/users/user02>
> # User 02
> Require user 224706
> </Directory>
>
> <Directory /usr/local/apache/htdocs/users/user03>
> # User 03
> Require user 224706
> </Directory>
>
> 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" <eko@ntt.net.id> on 11/28/2001 07:52:58 PM
>
> Please respond to users@httpd.apache.org
>
> To: <users@httpd.apache.org>
> 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 <URL:http://httpd.apache.org/userslist.html> 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 <URL:http://httpd.apache.org/userslist.html> 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 <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Password Directory [ In reply to ]
Stefanus Eko Yulianto wrote:
>
> I already configure like your configuration
> but there is an error like this :
>
> --------------------------
> Internal Server Error
> etc...
>
> More information about this error may be available in the server error log.

Did you read this? What does it say in the server error log?

You get an error like this when a CGI script fails to execute properly.
What request did you make to cause this?

rgds,

Owen Boyle.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: Password Directory [ In reply to ]
On Thu, 29 Nov 2001, Stefanus Eko Yulianto wrote:
> RewriteEngine on
> RewriteCond %{HTTP_HOST} !^$
> RewriteRule .*
> https://192.168.255.20/users/%{REMOTE_USE}

Note also that the variable is named REMOTE_USER and that you may need to
use %{LA-U:REMOTE_USER} depending on where it occurs in your
configuration.

Also see the new require options "file-owner" and "file-group", which may
be useful to you.

Joshua.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org