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, webmaster@stage.mysite.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.
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.
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.