Jump to content

[SOLVED] Implementing .htaccess Password Protection.


DeepakJ

Recommended Posts

I basically want to implement .htaccess password protection on my local computer to test it out before going to the server. I have AllowOverride all under htdocs and my .htaccess file looks like the following:

 

AuthUserFile /localhost/InputMaintainance/.htpasswd

AuthGroupFile /dev/null

AuthName EnterPassword

AuthType Basic

 

require user mecsoft

 

The folder my files are in (htpasswd too) is called InputMaintainance. For some reason, the password protectionscreen comes up once, I type in the info, and it gives the 500 error. I refresh and it still gives the 500 error. I must have spent 4 hours trying to figure this out yesterday. Help would be GREATLY appreciated.

Link to comment
Share on other sites

I would also like to add that I get the password thing every time I restart my computer and try to access the browser, but the 500 error pops up. I also think the problem lies in my file root but am unsure on how to change the syntax.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.