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.

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.

Archived

This topic is now archived and is closed to further replies.

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