Wildcard subdomain apache &directory

Today I have tried to setup apache wildcard at domail level and directory level, and its worked as expected by following
Eg :

xxx.mydomain.com => /var/www/xxx

yyy.mydomain.com => /var/www/yyy

and the vhost is

<VirtualHost *:80> VirtualDocumentRoot /var/www/%0 ServerAlias *.mydomain.com </VirtualHost>

Ref :
http://serverfault.com/questions/182929/wildcard-subdomain-directory-names
http://httpd.apache.org/docs/2.2/mod/mod_vhost_alias.html

Prevent brute force attacks on SSH servers

Install Denyhosts :

Install on Ubuntu/Debian/LinuxMint :

 sudo apt-get install python python2.6-dev python2.6  
Denyhosts log to :
/var/log/denyhosts
To purge Hosts :
If there are valid hosts that end up being blocked (i.e. during testing or forgotten password, etc.), you can purge any entries in the /etc/hosts.deny file by running the denyhosts script with the –purge option. The hosts must be older than the value set in PURGE_DENY, so you may want to lower the value temporarily in order to purge the valid host (i.e. to purge entries older than 1 minute, set PURGE_DENY = 1m in the /etc/denyhosts.conf file)
First stop denyhosts :

sudo /etc/init.d/denyhosts stop

Second Purge hosts :

sudo denyhosts --purge<strong>

Third start denyhosts :

sudo /etc/init.d/denyhosts start