Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Fri Apr 19, 2024 6:13 pm
Auto Dialer Software


All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: .htaccess password protect admin directory
PostPosted: Thu Jan 12, 2012 2:59 pm 
Offline

Joined: Sun Jan 20, 2008 12:00 am
Posts: 71
I'm doing something wrong that I could not figure out why my .htaaccess is not working
I want to protect my a2billing admin directory access

so in /var/www/html/a2billing/admin directory, I have .htaccess file with the following:

Quote:
AuthName "For Registered Users Only"
AuthType Basic
AuthUserFile /var/htpasswd
require valid-user


in the file /var/htpasswd
I my username password in there generated by htpasswd -c

I have restarted httpd

but when I try to access the admin directory, it's giving me access w/out entering the username/password.

Can someone please shed some light?

Thanks


Top
 Profile  
 
 Post subject: Re: .htaccess password protect admin directory
PostPosted: Tue Jan 17, 2012 2:02 am 
Offline

Joined: Sat May 10, 2008 4:19 pm
Posts: 132
Location: Wilmington, DE
sonvan,
There are a few ways to protect your directory and .htaccess is definitely a good option, however it's an added load on your server.
I notice many people putting .htaccess files in directories and hope for a miracle. You do not have any protection with .htaccess files unless your web server is properly configured.
The AllowOverride must be equal to All instead of None as you can see below.

Code:
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
#   Options FileInfo AuthConfig Limit
#
    AllowOverride [color=#0040FF]All[/color]


I hope this helps.

Robin.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 
VoIP Billing solution


All times are UTC


Who is online

Users browsing this forum: No registered users and 17 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group