from here
Install Apache radius module :
1 |
apt-get install libapache2-mod-auth-radius |
enable radius module for Apache :
open /etc/apache2/apache2.conf and add the following lines to end of file :
1 |
AddRadiusAuth IP_OF_RADIUS_SERVER:PORT SECRET 5 |
2 |
AddRadiusCookieValid 60 |
go to /var/www folder or the folder which you want to protect and create a .htaccess file inside it containing following lines :
2 |
AuthName "AdminseHow Radius Authentication" |
3 |
AuthBasicAuthoritative Off |
4 |
AuthBasicProvider radius |
5 |
AuthRadiusAuthoritative on |
restart Apache :
1 |
/etc/init.d/apache2 restart |
for more info regarding the configuration options , you can read the following link :
http://freeradius.org/mod_auth_radius/
google_protectAndRun(“ads_core.google_render_ad”, google_handleError, google_render_ad);google_protectAndRun(“ads_core.google_render_ad”, google_handleError, google_render_ad);
Advertisement
Like this:
Be the first to like this post.