| Author |
Message |
|
Domain Users
|
|
|
|
Posted:
Sun Dec 15, 2002 16:49
|
|
|
Joined: 11 Nov 2002
Posts: 34
|
|
Hi, all
How (where) can I password-protect a directory for
a USER ( mydomain.org/~username/secret_dir ) ?
I looked everywhere in the Control Panel(s) - both:
User CP and Admin CP - and there are NO options at
all to do that. In the User CP I can't even see the
created User Directories/Files - actually, neither
can I in the Admin PC ( besides the user name, and
the option to CHMOD that particular user directory )
THANKS i.A. - Monikina
PS: I also need the path to user directories: Is it
/home/virtual/sitexx/fst/home/username/public_html/directory ? |
|
|
|
 |
|
Posted:
Sun Dec 15, 2002 19:05
|
|
|
Site Admin
Joined: 14 Aug 2002
Posts: 3031
|
|
To password-protect a user directory, do the following:
1. Create a new group & user in your site admin control panel, say,
Group: group2
User: user2
Passwd: pass2
2. upload a .htaccess file into your user directory you wish to protect, say .../newuser/public_html
AuthUserFile /home/virtual/site#/fst/var/www/.htpasswd
AuthGroupFile /home/virtual/site#/fst/var/www/.htgroup
AuthName "newuser"
AuthType Basic
<Limit GET>
require group group2
</Limit>
Now if you try to visit http://newuser.yourdomain.org, a window should pop up asking for username and password.
user: user2
pass: pass2
Yup, the path to user account is
/home/virtual/site#/fst/home/username/public_html |
|
|
|
 |
|
Posted:
Thu Apr 20, 2006 18:48
|
|
|
Joined: 17 Jun 2005
Posts: 12
|
|
I am trying to do the same thing. Only, I want to restrict clientonly folder under my web which is a folder under my root.
/web/clientsonly. Is this my path? I am having trouble access the path. The pop up comes up for the restricted access but it isn't accepting my passwords despite having the
.htaccess
.htpasswd files in that folder. Any clues? |
|
|
|
 |
|