canadave Posted May 12, 2009 Report Share Posted May 12, 2009 Hi, I'm a little stumped. I'm trying to password-protect a single webpage using .htaccess and .htpasswd, and not having much luck. In my home folder (not public_html), I have a folder "privateerdays". That's where my privateerdays.ca domain points to. In that folder is a particular file I want to password-protect: blogger.html. So I created a .htpasswd username/password file with MD5 encryption via the standard method, placed that in the privateerdays folder, and created an .htaccess with it that looks like this: AuthUserFile /home/canadave/privateerdays/.htpasswd AuthName "Privateer Days Blog" AuthType Basic Require valid-user But, it's not working at all. If I go to privateerdays/blogger.html in my web browser, there's no prompt for a username or password. Am I missing something here? Does Litespeed have some sort of issue processing this sort of thing? More likely I'm just being dense somehow.... goftheVysotte 1 Quote Link to comment Share on other sites More sharing options...
Tony Posted May 12, 2009 Report Share Posted May 12, 2009 It should work fine I recently remember reading a ticket about it and the person had no issue using it. You're best to make a ticket so we can take a look. Quote Link to comment Share on other sites More sharing options...
larry Posted May 12, 2009 Report Share Posted May 12, 2009 I just used the cpanel interface to protect mine. worked fine for me. edit: I see you want to do a single file, thats what I get for not reading it fully Quote Link to comment Share on other sites More sharing options...
Tony Posted May 12, 2009 Report Share Posted May 12, 2009 I did not notice that. I'd first see if you can protect a folder successfully then switch it to a file. It's more likely an issue with the specific file reference than the password protection portion but who knows it's tough to investigate without playing around with it live. Quote Link to comment Share on other sites More sharing options...
canadave Posted May 13, 2009 Author Report Share Posted May 13, 2009 Thanks guys....I did try doing it with a folder, and had no joy there either. I'll open a ticket. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.