Archive for the ‘apache’ Category

Check the validity of your ssl certificates

Posted: 27th May 2010 by BritishSongWriter in apache, bash, cyrus, dovecot, postfix

With this command you can check the validity period of your generated certificates (apache, postfix, dovecot, cyrus, etc ). Example: Encrypted certificate Content of the certificate decrypted:

Password protect web directories

Posted: 23rd May 2010 by Valkyrka in apache

Here is how you can password protect web directories using Apache. First, you would need to make sure that Apache allows the use of .htaccess. This can be simply done by changing the following directive : As you can see, mine is already set to 'All'. After you have set AllowOverride to All, reload Apache [...]

Print the IPs which have more than 1000 hits

Posted: 11th May 2010 by Valkyrka in apache, bash

Here is how you can print the IPs ( fetched from the access_log of Apache ) which have more than 1000 hits : Additionally, you can change 1000 to your desired value.