Jump to content

.htaccess problem


lefthook
 Share

Recommended Posts

I cannot get .htaccess working. I have a dir under doc root which I want to secure (/var/www/apache/htdocs/user-x. I have:

 

.htaccess file in that dir:

AuthUserFile /www/htdocs/secure/.htpasswd

AuthGroupFile /dev/null

AuthName My Secure Directory

AuthType Basic

require valid-user

 

& I made .htpasswd file Ok. I tried to check chmods, but no. .htaccess is configured in httpd.conf. Just nothing happens I can browse dir where .htacess file is without restrictions. What I'm missing? or other ways to sec dirs?

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

×
×
  • Create New...