Welcome Guest. Please Login or Register  


You are here: Index > Webuzo > General Support > Topic : Password Protect directories



Threaded Mode | Print  

 Password Protect directories, It's not working. Am I missing something? (1 Replies, Read 6817 times)
Themis-T
Group: Member
Post Group: Newbie
Posts: 28
Status:
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

IP: --   

<SOLVED> Password Protect directories
Themis-T
Group: Member
Post Group: Newbie
Posts: 28
Status:
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

IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is April 18, 2024, 4:57 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.021