Softaculous


Topic : Password Protect directories


Posted By: Themis-T on November 8, 2014, 11:09 pm
Hi,

I have set password protected directories using htpasswd command from the shell, changed Apache configuration "AllowOveride None" to "AllowOveride AuthConfig" for htaccess files, placed the ".htaccess" file inside the directory to protect, but still I get Internal Server Error and no popup window to enter username/password.
The permissions for ".htpasswd" file are 644.

Sample .htaccess file:
Code
AuthUserFile /home/username/.htpasswd
AuthType Basic
AuthName "enter password"
Require user username


I'm sure that everything is correct. It was working before, until I had to rebuild a website from scratch for a client and reinstalled everything on a new VPS.

Am I missing something?

Regards,
Tim

-----------------------
NEW:
Cloud Hosting on Cloud VPS: 10 €/mo
- FAST SSD drives
- FREE Webuzo control panel
- Multiple locations: NY / NL


Posted By: Themis-T on November 9, 2014, 6:22 am | Post: 1
Problem SOLVED...!!!

I had to enable some of the apache modules below:
Code
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_owner_module modules/mod_authz_owner.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_dbm_module modules/mod_authz_dbm.so


-----------------------
NEW:
Cloud Hosting on Cloud VPS: 10 €/mo
- FAST SSD drives
- FREE Webuzo control panel
- Multiple locations: NY / NL


Powered By AEF 1.0.8 © 2007-2008 Electron Inc.