Need Help With .htaccess In Apache


Recommended Posts

hi i wanna secure the directory "secure" in apache on a unix box

ive altered the httpd.conf file

then put a .htaccess file in secure containing:

AuthType Basic

AuthUserFile /var/www/html/secure

AuthName “Restricted â€

<LIMIT GET POST>

require valid-user

</LIMIT>

then i added a username and password to the htpasswd file etc.

but i dont get asked for a username or password when i access a htm file in the secure directory

any ideas?

cheers for any help

Link to post
Share on other sites
  • 2 weeks later...

did you do it this way

htpasswd -c /usr/local/apache/passwd/passwords rbowen
New password: mypassword
Re-type new password: mypassword
Adding password for user rbowen

or did you vi the files?

Edited by iccaros
Link to post
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.

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