December 2012
M T W T F S S
 12
3456789
10111213141516
17181920212223
24252627282930
31  

Categories

December 2012
M T W T F S S
 12
3456789
10111213141516
17181920212223
24252627282930
31  

Monitoring Bandwidth – Linux

Here is the list of bandwidth monitoring tools for network bandwidth

bmon bwbar bwm bwm-ng iftop iperf ipfm speedometer cbm ibmonitor pktstat mactrack MRTG Cacti

I think most of the above tools should also be available for other distribution of Linux.

. Here is a link using which bwm-ng can be installed and run on […]

Managing your Linux/Unix log files using logrotate

Log files are one of the most important files where almost all precious and sometimes unnecessary information are stored in regard to your server’s running state. For example, if your system’s security has been breached or compromised, it’s these log files which will come to your rescue to help you identity where or what went […]

htaccess

What is .htaccess for? .htaccess syntax

Forbidding access:

Forbidding all files Allow access from a certain IP address Forbid access from a certain IP address Forbidding a group of files by mask Forbidding a particular file

Setting a password:

Password for a directory Password for one file only Password for a group […]

OpenSSL Commands

General OpenSSL Commands

These commands allow you to generate CSRs, Certificates, Private Keys and do other miscellaneous tasks.

Generate a new private key and Certificate Signing Request

openssl req -out CSR.csr -new -newkey rsa:2048 -nodes -keyout privateKey.key

Generate a self-signed certificate (see How to Create and Install an Apache Self Signed Certificate […]

Enable SSL in Tomcat

Step 1 Windows[goto Command] %JAVA_HOME%\bin\keytool -genkey

Enter all the details which keytool is going to prompt. (rememeber the password)

once you done, please go to your [USER_HOME](document & settings), locate the .keystore.

Copy this file and paste in tomcat root folder.

Step 2 Open [tomcat_home]/conf/server.xml

uncomment the SSL config entry. And configure the SSL certificate […]

TOMCAT TUNING

tuning rules Doesn’t compensate for bad, slow or poorly written applications If you allocate memory more than 3g, preferably divided into multiple tomcat young generation can not be set too much, minor gc will stop the world.

Three factors negatively impact Tomcat’s performance more than any others – network delays, remote client latency, and […]

21 Apache Tomcat Configuration Tips

Tip #1 – Watch Out for White Space

When installing Tomcat under Windows, the path to the installation directory should not contain white space. The default (c:/Program Files) is not acceptable, because it contains a white space character. Installing under “C:/ProgramFiles” is acceptable because this path does not contain any white space characters.

Tip #2 […]

Enable gzip compression in tomcat

Apache tomcat will support gzip compression. The advantage of compression is the output response will be compressed 6 to 10 times.

To enable gzip compression you need to add some additional properties in $APACHE_TOMCAT_HOME_HOME/conf/server.xml file.

Open conf/server.xml from your tomcat home directory with any text editor.

Search for “Connector port=”8080?”, line at this content will […]

Tomcat 6 Access Logging

One of tomcat’s strength is in it’s logging but one of the logger types disabled by default from the base configuration is one that adds access logging support into tomcat. This provides you with a view of activity that you may find useful for debugging, troubleshooting, usage analysis, etc. Enabling it is simply a matter […]

Automatic unlimited subdomains via Apache mod_rewrite

Wondering how blogger website gives you a subdomain from the blogspot.com domain based on your username of your choice? Well, the concept for this tutorial is somewhat related with it on setting up unlimited subdomains. I’m not sure how do they do it because it could be done by any script, hardcoded or not, thru […]