Category Archives: Web Hosting

Redirect non https urls to https with www

How to force HTTPS using a web.config file This example shows how to Redirect example.com and www.example.com to https://www.example.com You need to add this rules to your web.config file <?xml version=”1.0″ encoding=”UTF-8″?> <configuration> <system.webServer> <rewrite> <rules> <rule name=”CanonicalHostNameRule1″ stopProcessing=”true”> <match url=”(.*)” /> <conditions> <add input=”{HTTP_HOST}” pattern=”^www\.example\.com$” negate=”true” /> </conditions> <action type=”Redirect” url=”https://www.example.com/{R:1}” /> </rule> <rule …

Read more

how to find current ssh port number in whm server

How to see the SSH port number if we have WHM with root access. Normally many hosting providers will change the default SSH port from 22 to any custom numbers. There is very easy method to find it if you have WHM root access.  You do not need to install any plugin to find it. …

Read more

How to install SSL certificate on Centos Web Panel

When we install SSL certificate on Centos Web Panel (CWP) the SSL certificate may not work using default installations. You may need to do some edits in Centos Web Panel (CWP)  apache configuration files. To install Certificate go to the SSL manager Security–> SSL Manager Use the SSL Generator to generate Key, CSR  and Selfsigned …

Read more

Install an Nginx Load Balancer

It’s very easy to configure a load balancer using Nginx.  In this example we will needed following servers  Nginx Server ( lb-01), 192.168.0.1  Two Apache Web Servers ( app01, app02) 192.168.0.2 and 192.168.0.3 Aim: Distributed the web traffic comes to LB-01 to both web servers Step1: Install Apache on both App servers Step2: Change the …

Read more