Install the Intermediate Certificate (IIS6 & IIS7)

(1) Click the Start menu and click Run…. Type mmc in the Run window and click OK to start the Microsoft Management Console (MMC).

(2) In the Management Console, select File then Add/Remove Snap In.

(3) In the Add or Remove Snap-ins dialog, click the Add button and then select Certificates.

(4) Choose Computer Account then click Next.

(5) Choose Local Computer, then click Finish.

(6) Close the Add or Remove Snap-ins dialog and click OK to return to the main MMC window.
If necessary, click the + icon to expand the Certificates folder so that the Intermediate Certification Authorities folder is visible.

(7) Right-click on Intermediate Certification Authorities and choose All Tasks, then click Import.

(8) Follow the wizard prompts to complete the installation procedure.

(9) Click Browse to locate the certificate file. Change the file extension filter in the bottom right corner to be able to select the file. Click Open after selecting the appropriate file.

(10) Click Next in the Certificate Import Wizard.

(11) Choose Place all certificates in the following store; then use the Browse function to locate Intermediate Certification Authorities. Click Next. Click Finish.


iftop installation step

iftop command displays real-time network bandwidth usage. It displays the network usage of a specific interface on the host. Using iftop you can identify which host is responsible for slowing down your network.

(1) First, ensure this 2 module is install in your server. If not, install it. (of course, your server need to have module “Development Tools” such as gcc)

yum install libpcap-devel
yum install libpcap

(2) Download the iftop source code to /usr/src

cd /usr/src

(3) Unzip and install it

gzip -d iftop-0.17.tar.gz
tar xvf iftop-0.17.tar
cd iftop-0.17
make install

Please visit iftop site for latest version.

How to disable auto FSCK

(1) open /etc/fstab

nano /etc/fstab

(2) edit the line that contains the filesystem and modify the last number in the row to ‘0’, which disables fsck.

/dev/VolGroup/LogVol     /mountpoint      defaults    1 0

(3) Save it, done.

Note: Will not typically suggest disabling the on-boot fsck except in situations where the machine does not boot, the file system is extremely large, or the file system is on remote storage.

How to set redirection by

IIS Redirect

(1) In internet services manager, right click on the file or folder you wish to redirect
(2) Select the radio titled “a redirection to a URL”.
(3) Enter the redirection page
(4) Check “The exact url entered above” and the “A permanent redirection for this resource”
(5) Click on ‘Apply’

ColdFusion Redirect

<.cfheader statuscode="301" statustext="Moved permanently">
<.cfheader name="Location" value="">

PHP Redirect

Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location:" );

ASP Redirect

<%@ Language=VBScript %>
Response.Status="301 Moved Permanently"
Response.AddHeader "Location",""

ASP .NET Redirect

<script runat="server">
private void Page_Load(object sender, System.EventArgs e)
Response.Status = "301 Moved Permanently";

JSP (Java) Redirect

response.setHeader( "Location", "" );
response.setHeader( "Connection", "close" );

CGI PERL Redirect

$q = new CGI;
print $q->redirect("");

Ruby on Rails Redirect

def old_action
headers["Status"] = "301 Moved Permanently"
redirect_to ""

.htaccess redirect

RewriteEngine on
rewritecond %{http_host} ^ [nc]
rewriterule ^(.*)$$1 [r=301,nc]

How to allow access only within country

The solution quite simple, just deny all the access and allow that country IP.

order deny,allow
deny from all
allow from country IP 

Or you want to deny only one or several country

order allow,deny
deny from country IP 
deny from country IP 
allow from all

How to check the that country IP range, you can get the detail from this Useful site