You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by m i l e s <li...@magicmiles.com> on 2004/02/06 21:12:46 UTC
[users@httpd] HTACCESS FIle ?
Hi,
I know this has probably been discussed before but...
yes that's right....DUCK! Another Apache Stupid Newbie
question....eeeeek! <giggle>
Below are the instructions I received from a friend of mine
to set up access control for the apache webserver
for folder level access.
I set it up....created the .htaccess file via PICO
as the superuser....and it doesn't work.
Can anyone tell me what Im missing ?
PS: Yes the password file is sitting in the users directory
that is mentioned below.
++++++++++++++++++++++++++++++++++
1.) To set up a password protected folder,
you first create a .htaccess file within
the folder you want to protect, that
contains the following:
AuthType Basic
AuthName your_realm
AuthUserFile /Users/username/nameofpasswordfile
require valid-user
2.) Replacing "your_realm" with the name for
your protected realm and the AuthUserFile
path with the path to the file that
contains the username/password combinations.
3.) Then, to create/add users to the user/password
file, use the following command line operation:
htpasswd [-c] passwordfile username
(the -c creates a new file if you need to do so)
--
M i l e s
President & Toolbox Architect
MagicMiles Software
(413) 374 - 5161
PO Box 414, Northampton, MA 01060
http://www.servicetoolbox.com/
http://www.workshoptoolbox.com/
http://www.healingartstoolbox.com/
http://www.artshoptoolbox.com/
We create content management systems for
the rest of us, starting at $25.00 a month,
includes domain registration, web hosting,
email and webmail. Great for Yoga Teachers,
Massage Therapists, Lawyers, Doctors,
and any professional!
---------------------------------------------------------------------
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
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] HTACCESS FIle ?
Posted by m i l e s <li...@magicmiles.com>.
On Feb 6, 2004, at 4:03 PM, Jez Hancock wrote:
>The instructions sound ok, what are the error messages
>that appear in your error log?
None.
Im not getting any errors in the error log.
Is it my http.conf file that's causing the foul up ?
Is there a directive that should be in there but isn't ?
If so, where should it live and what should it say ?
+++++++++++++++++++++++
M i l e s
President & Toolbox Architect
MagicMiles Software
(413) 374 - 5161
PO Box 414, Northampton, MA 01060
http://www.servicetoolbox.com/
http://www.workshoptoolbox.com/
http://www.healingartstoolbox.com/
http://www.artshoptoolbox.com/
We create content management systems for
the rest of us, starting at $25.00 a month,
includes domain registration, web hosting,
email and webmail. Great for Yoga Teachers,
Massage Therapists, Lawyers, Doctors,
and any professional!
---------------------------------------------------------------------
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
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] HTACCESS FIle ?
Posted by Jez Hancock <je...@munk.nu>.
On Fri, Feb 06, 2004 at 03:12:46PM -0500, m i l e s wrote:
>
> 1.) To set up a password protected folder,
> you first create a .htaccess file within
> the folder you want to protect, that
> contains the following:
>
> AuthType Basic
> AuthName your_realm
> AuthUserFile /Users/username/nameofpasswordfile
> require valid-user
>
> 2.) Replacing "your_realm" with the name for
> your protected realm and the AuthUserFile
> path with the path to the file that
> contains the username/password combinations.
>
> 3.) Then, to create/add users to the user/password
> file, use the following command line operation:
>
> htpasswd [-c] passwordfile username
> (the -c creates a new file if you need to do so)
The instructions sound ok, what are the error messages that appear in your
error log?
--
Jez Hancock
- System Administrator / PHP Developer
http://munk.nu/
http://jez.hancock-family.com/ - Another FreeBSD Diary
http://ipfwstats.sf.net/ - ipfw peruser traffic logging
---------------------------------------------------------------------
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
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org