can't protect page with .htaccess on Litespeed?


canadave

Recommended Posts

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....

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...