
According to Denis, the Linux servers can be infected to be used in a botnet used to distribute malware. The modus operandi of attack is as follows :
Read more »

... and so on and so forth.
I have always found editing the .htaccess file as bit of a black art. Mainly because mastering the regular expressions involved to accomplish tasks takes a bit of practice and some hits and misses before you get the desired results.
Spreading a workload across multiple processors, coupled with various software recovery techniques, provides a highly available environment and enhances overall RAS (Reliability, Availability, and Serviceability) of the environment. Benefits include faster recovery from unplanned outages, as well as minimal effects of planned outages on the end user.To get the most out of this article, you should be familiar with Linux and basic networking, and you should have Apache servers already configured. Our examples are based on standard SUSE Linux Enterprise Server 10 (SLES10) installations, but savvy users of other distributions should be able to adapt the methods shown here.
Apache is one of the most flexible web server around. And one of the features that aids it in being flexible is a hidden file which goes by the name '.htaccess'. This file is used by web site administrators to make configuration changes on a per-directory basis especially when the administrator does not have access to the main configuration file of the apache web server.# htpasswd -c /etc/apache2/.htpasswd ravi
New password: *****
Re-type new password: *****
Adding password for user ravi
#_
# chmod 644 /etc/apache2/.htpasswd# touch /var/www/mysite.com/.htaccessNow I enter the following lines in the .htaccess file :AuthUserFile /etc/apache2/.htpasswd
AuthGroupFile /dev/null
AuthName MySiteWeb
AuthType Basic
require user ravi
require user ravi john
require valid-userThe .htaccess file also has to be provided the right file permissions.# chmod 644 /var/www/mysite.com/.htaccess<Directory /var/www/mysite.com/>TO
...
AllowOverride None
...
</Directory>
<Directory /var/www/mysite.com/>
...
AllowOverride AuthConfig
...
</Directory>
$ sudo cp -R -p websiteA /var/www/.
$ sudo cp -R -p websiteB /var/www/.The -p option preserves the ownership of the files and directories while copying.#FILE: /etc/apache2/sites-available/websiteA
NameVirtualHost websiteA:80
<virtualhost websiteA:80>
ServerAdmin ravi@localhost
ServerName websiteA
DocumentRoot /var/www/websiteA/
<directory>
Options FollowSymLinks
AllowOverride None
</directory>
<directory /var/www/websiteA/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
...
</directory>
...
...
</virtualhost> #FILE : /etc/hosts
127.0.0.1 localhost.localdomain localhost websiteA websiteB $ cd /etc/apache2/sites-enabled
$ sudo ln -s /etc/apache2/sites-available/websiteA .
$ sudo ln -s /etc/apache2/sites-available/websiteB .Restart the apache web server$ sudo apache2ctl restart
OR
$ sudo /etc/init.d/apache2 restart
#FILE: httpd.conf
...
NameVirtualHost 192.168.0.1
...
# htpasswd -c /usr/local/etc/users gopinath
gopinath:WrU90BHQai36The first field is the username and the second field is the encrypted password.
kumar:iABSd12QWs67
ankit:Wer56HsD12s6
AllowOverride NoneAnd change it to
AllowOverride AuthConfig
#File: .htaccess
AuthName "Only Valid Access"
AuthType Basic
AuthUserFile /usr/local/etc/users
require valid-user
# service httpd restart