Jump to content

Recommended Posts

I need to MANUALLY configure .htaccess files to protect some directories. I have some "add user forms" that update this via PHP so the cPanel stuff will not work for me.

 

I may be missing something stupid, is there anyone that can help??

 

>AuthUserFile "/home/******/rep_users/REP.user"
AuthGroupFile "/dev/null" 
AuthName "All About Play"
AuthType Basic

<Limit GET POST> 
require valid-user
</Limit>

 

the files seems to be in the right place. And I get challanged by the webbrowser for authentication but it will not acceot any of my old dot ht password file.

Link to post
Share on other sites

Yea!

alway good when you can help your self.

Or it just starts working, did you hit the monitor? :)

 

I tried to see what cpanel did to protect and it looked very simailar

 

AuthType Basic

AuthName "foldername"

AuthUserFile "/home/cpanelname/.htpasswds/foldername/passwd"

require valid-user

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.

×
×
  • Create New...