2
votes

I always get 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, [email protected] 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.

Additionally, a

500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.24 (Unix) mod_hive/4.0 mod_ssl/2.2.24 OpenSSL/1.0.0-fips mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at stage.mysite.com Port 80

Here's what I've done in the htaccess file:

AuthType Basic
AuthName "Password Protected Area"
AuthUserFile "/home/feli33/public_html/.htpasswd"
Require valid-user

and in the root of the public html folder I have my .passwd file:

the only thing in it is a username and an md6 hash:

admin:li3fFizhXCgMU

Any help would be appreciated. Thank you.

1
The closing quote is missing from the AuthUserFile "/home/feli33/public_html/.htpasswd line. You actually don't need any quotes there. - Boris
I noticed that just a little while ago and put an ending quote. I can't figure out for the life of me why it's not working. It's driving me crazy. - thismethod
It must be something trivial. Can you post your whole virtual host config file. - Boris
Don't think you need the quotes around the AuthUserFile string - CD001
I'm sorry, where do i find that? @Boris... It's a magento EE store. - thismethod

1 Answers

0
votes

This is how my .htaccess looks like. I've created my .htpasswd file by running htpasswd -c .htpasswd username. The password is pass.

AuthType basic
AuthName "private area"
AuthUserFile "/var/www/path/to/.htpasswd"
Require valid-user

Command to create .htpasswd file.

htpasswd -c .htpasswd username

.htpasswd file.

username:$apr1$QC6hD31s$I/uGkzaIrnUp/5sSURRH00