[clug-talk] htaccess

Gustin Johnson Gustin at echostar.ca
Fri Jun 9 16:33:26 PDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mitchell Brown wrote:
> http://www.vortexmind.net/index.php/2006-02-26-apache-htaccess-tweaking-tutorial/#11
> It says here that you're SUPPOSED to put the .htpasswd in the folder you
> want protected  -- so thats what I was doing. If you don't do it that
> way - then how else do you do it?
> 

The .htpasswd is generally where you store your usernames and passwords,
.htaccess is put in the folders that you want to protect.

Having said that,.htpasswd is a totally arbitrary name, I have a
completely different name on my system, as long as the .htaccess file
points to the correct location of the htpasswd you are OK.

Also the apache error log is probably going to tell you what is going
wrong.  Just do a tail -f -n50 /var/log/apache2/error.log

When you try to connect you should see something.

I use a program called quadkonsole so I can see multiple things at the
same time (a screen session can be split to achieve a similar effect).
I will often tail the access.log at the same time.

Hth,



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEigVGwRXgH3rKGfMRAup/AKCeF5QGeqJngjK0RARWMTxjstaFKQCeJHMy
A5aZ6R43OmRSy6RWryGlI9U=
=c+IV
-----END PGP SIGNATURE-----



More information about the clug-talk mailing list