###Authentication with Apache2###
##Instal Apache2-utils+ sudo apt-get install apache2-utils
##Create file password
+ goto path for Authentication
- cd /var/www/html/lightsquid
+ htpassword -c passwords admin <----------- #for create file password user admin
- comfirm password
##Delete User Authentication
+ htpasswd -D admin <------------------ #Remove user admin in file
-----------------------------------------------------------------------------------------------------
##Test Config apache2 for Authentication from file password && Enable .cgi
+ After #AddHandler cgi-script .cgi
Before AddHandler cgi-script .cgi <--------------path /etc/apache2/mods-enabled/mime.conf
##Configure Apache2 path <-------- #/etc/apache2/apache2.conf
<Directory "/var/www/html/lightsquid/">
DirectoryIndex index.cgi
AddHandler cgi-script .cgi .pl
Options Indexes FollowSymLinks
AuthType Basic
AuthName "Proxy Server Views"
AuthUserFile "/var/www/html/lightsquid/passwords"
Require valid-user
Options +ExecCGI
AllowOverride All
Order Allow,Deny
Allow from All
#AddHandler cgi-script cgi pl
</Directory>
##Restart Service Apache2
+ sudo service apache2 restart
-----------------------------------------------------------------------------------------------------