a different .htaccess problem
Okay, I've created the directory I want protected.
I created the .htaccess file in that directory which is below:
AuthUserFile /home/user_directory/.htpasswd
AuthGroupFile /dev/null
AuthName Login
AuthType Basic
require user confused
I've also created the .htpasswd file in the /home/user_directory/ directory using the
htpasswd -c .htpasswd confused
but....when I go to the site that is supposed to be password protected, nothing happens.
Are there any suggestions? Maybe fool with adding a new mime type? Please help and thanks in advance.
CPRhosting.com - CPR Hosting...Giving life to the web
Custom-made Hosting Plans starting at $2
ROB posted this at 16:57 — 12th June 2002.
They have: 447 posts
Joined: Oct 1999
i cant say for sure that what you have is correct or not, but it looks right.
remember that apache needs to be configured to look for .htaccess files. i had a similar problem to you once and found i had to make some changes to httpd.cfg
shanda posted this at 18:50 — 12th June 2002.
They have: 105 posts
Joined: Jan 2002
that's exactly what it was...a change needed to be made in the conf file. I'll post the change once I return home (it's on my system there).
shanda posted this at 04:28 — 13th June 2002.
They have: 105 posts
Joined: Jan 2002
I added a directory block in the httpd.conf file for the site. The block is as follows:
AllowOverride AuthConfig
This will enable the authentication for the http://www.yoursite.com/path_to_directory
CPRhosting.com - CPR Hosting...Giving life to the web
Custom-made Hosting Plans starting at $2
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.