On Dec 13, 2005, at 8:34 AM, Roland Drake wrote:

Dear List:

I recently read a tutorial about how to password protect a web site using .htaccess. I followed the instructions as outlined in the tutorial, but I was unable to encrypt my test directory. According to the tutorial when you reach the encrypted directory, it will prompt you for username and password. When I tried to access this directory, there was no
prompt for a username and password. What could I be missing?

The article to which I am referring is at http://creativebits.org/ How_to_Password_Protect_websites_usinghtaccess .

By the way, I am running a Power Mac G4 with OS 10.4.2.

Does the .htaccess file have the right permissions? It needs to be world-readable and executable.

do 'ls -l .htaccess' in the directory it's in.

It should look like:

-rwxr-xr-x <blah blah> .htaccess

If it doesn't, for example the permissions look like:

-rwxr--r--

do this command in the directory:

sudo chmod o+rx .htaccess

You'll be asked for your admin password, and then it'll work.

As a remote possibility, you might have to edit your apache configuration file /etc/httpd/httpd.conf

But I doubt it...I didn't have to do that on my system. I'll play with it later today, there's some stuff I'd like to protect on my site, and I should have gotten around to it a long time ago.

--
Bruce Johnson

This is the sig who says 'Ni!'


--
G-List is sponsored by <http://lowendmac.com/> and...

Small Dog Electronics    http://www.smalldog.com | Refurbished Drives |
-- We have Apple Refurbished Monitors in stock!  |  & CDRWs on Sale!  |

     Support Low End Mac <http://lowendmac.com/lists/support.html>

G-List list info:       <http://lowendmac.com/lists/g-list.shtml>
 --> AOL users, remove "mailto:";
Send list messages to:  <mailto:g-list@mail.maclaunch.com>
To unsubscribe, email:  <mailto:[EMAIL PROTECTED]>
For digest mode, email: <mailto:[EMAIL PROTECTED]>
Subscription questions: <mailto:[EMAIL PROTECTED]>
Archive: <http://www.mail-archive.com/g-list%40mail.maclaunch.com/>

iPod Accessories for Less
at 1-800-iPOD.COM
Fast Delivery, Low Price, Good Deal
www.1800ipod.com

Reply via email to