Jump to content

Recommended Posts

Ok it worked once and I got this error:

Internal Server Error

 

The server encountered an internal error or misconfiguration and was unable to complete your request.

 

Please contact the server administrator, deepak@mecsoft.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

 

More information about this error may be available in the server error log.

 

This is my code:

<Files .htaccess>

order allow,deny

deny from all

</Files>

 

AuthName "Restricted Area"

AuthType Basic

AuthUserFile /home/InputMaintainance/.htpasswd

AuthGroupFile /dev/null

require valid-user

 

 

user:nOFfygzjeZs7Q

 

 

 

 

 

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 path but am unsure on how to change the syntax. 

 

 

 

I don't know if it's going to change much, but instead of having localhost, go ahead and put the pull file address

 

http://www.freewebmasterhelp.com/tutorials/htaccess/3 says:

 

AuthName "Enter Password"

AuthType Basic

AuthUserFile /full/path/to/.htpasswd (possibly C:\wamp\www\InputMaintainance\.htpassword )

require user mecsoft

 

"The /full/parth/to/.htpasswd should be changed to reflect the full server path to the .htpasswd file (more on this later). "

 

Also, in the .htpassword file, make sure the passwords are encrypted, and that there is not a blank line above the first one.

 

 

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.