hosting

If the reseller is selling Web Hosting

HTTP to HTTPS Redirection - IIS

Windows servers supports IIS URL Rewrite module. You can make use of this module to automatically redirect your visitors from HTTP to HTTPS.

Setting the HTTPS Redirection

  1. Ensure that the Digital Certificate is properly installed on your Hosting Order, and the site is resolving on https://yourdomainname.com.

    Note

    Your site will work on https://yourdomainname.com or https://www.yourdomainname.com or https://subdomain.yourdomainname.com, depending on the Common Name for which you had the certificate issued. Resolving HTTPS on anything other than this Common Name would result in a certificate name mismatch error.

  2. Create a web.config file under the site's directory and add the following lines to it. In case there already exists a web.config in your site's directory, carefully edit it to add these lines:


















    <common_name> needs to be replaced by the Common Name for which the Digital Certificate is issued.

HTTP to HTTPS Redirection - Apache

By default, Linux Servers have the mod_rewrite module enabled. You can make use of this module to automatically redirect your visitors from HTTP to HTTPS.

Setting the HTTPS Redirection

  1. Ensure that the Digital Certificate is properly installed on your Hosting Order, and the site is resolving on https://yourdomainname.com.

    Note

    Your site will work on https://yourdomainname.com or https://www.yourdomainname.com or https://subdomain.yourdomainname.com, depending on the Common Name for which you had the certificate issued. Resolving HTTPS on anything other than this Common Name would result in a certificate name mismatch error.

  2. Create a .htaccess file under the site's directory and add the following lines to it. In case there already exists a .htaccess in your site's directory, carefully edit it to add these lines:


    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://%{REQUEST_URI}

    <common_name> needs to be replaced by the Common Name for which the Digital Certificate is issued.

Modifying the hosts file

What is host file?

A hosts file is an address book, situated on your local desktop, that maps a host name to an IP address (network name resolution). Generally, a domain name (host name) is translated in to IP address via the DNS resolution process. However, the host entries that are present in this file will bypass this DNS resolution.

This can be of great help when:

  • You have modified the Name Servers, and are viewing the cached results due to the DNS propagation delay.

  • You are in process of migrating the hosting server, and want view the website on the new server when its still under development. This way you can preview the site in the developmental stage, whereas your visitors will continue to view the live website on the old server. Thus, the traffic to your site remains unaffected.

    Note

    You can also use the Direct/Temp URL to preview the site on 's server.

  • Creating a hosts file

    To view the results with such immediate effect, you can define a host/domain name in the hosts file.

    For Windows

  1. Go to C:\Windows\System32\drivers\etc and locate the hosts file.

  2. Open it in any text editor like Notepad, Notepad++, etc.

  3. Add your host entires as shown in the snapshot below and save the file.

For Linux

  1. Locate the hosts file at /etc/hosts.

  2. Run the below command to edit file:

    vim /etc/hosts

  3. Add your host entires as shown in the snapshot below and save the file.

Note

You may also need to flush your DNS. Your website's IP address may be saved in your computer's cache. So you need to clear this temporary data so that the IP address you just entered into your hosts file will take effect. To do so:

For Windows

  1. Click your Start Menu.

  2. Go to Accessories and then click Command Prompt.

  3. Run the below command:

    C:\> ipconfig /flushdns

  4. The output would be similar to:

For Linux

  1. Login into the shell of your machine.

  2. Run the below commands:

    root@support [~]# cd /etc/rc.d/init.d
    root@support [/etc/rc.d/init.d]# ./nscd restart

  3. The output would be similar to:

If you have any browsers open, close them and then open them again. You should now be able to successfully test your website on your new server.

Disable SSL

Description

Disables SSL for an existing Web Hosting Order. To learn more, click here.

Note

This API call will not result in a refund being processed for disabling SSL.

Parameters

Name Data Type Required / Optional Description
auth-userid Integer Required Authentication Parameter
api-key String Required Authentication Parameter
order-id Integer Required The OrderId for which SSL needs to be disabled.

HTTP Method

POST

Example Test URL Request


https://test.httpapi.com/api/webservices/disable-ssl.json?auth-userid=0&api-key=key&order-id=0

Response

Returns a map of the execution details of the disabling of SSL operation.

Get DNS Records

Description

Gets the DNS records of a Web Services (Email Hosting, Web Hosting and Website Builder) Order.

Parameters

Name Data Type Required / Optional Description
auth-userid Integer Required Authentication Parameter
api-key String Required Authentication Parameter
order-id Integer Required Order Id of the Web Services (Email Hosting, Single Domain Hosting and Website Builder) Order

HTTP Method

GET

Example Test URL Request


https://test.httpapi.com/api/webservices/dns-record.json?auth-userid=0&api-key=key&order-id=0

Response

Returns DNS records of the domain name.

Ports open for outgoing connections

has opened the following ports for outgoing connections on its Hosting Servers.

Plesk Single Domain Windows Hosting

  • 53

  • 1433

  • 443

  • 80

  • 3306

Plesk Multi Domain Windows Hosting

  • 53

  • 1433

  • 443

  • 80

  • 3306

cPanel Single Domain Linux Hosting

  • 53

  • 43

  • 1433

  • 5432

  • 3306

  • 80

  • 110

  • 143

  • 443

  • 8080

  • 7070

cPanel Multi Domain Linux Hosting

  • 53

  • 43

  • 1433

  • 5432

  • 3306

  • 80

  • 110

  • 143

  • 443

  • 8080

  • 7070

cPanel Reseller Linux Hosting

  • 53

  • 43

  • 1433

  • 5432

  • 3306

  • 80

  • 110

  • 143

  • 443

  • 8080

  • 7070

Change Hosting Panel Password

Description

Changes the hosting panel password of the specified Web Service Order.

Parameters

Name Data Type Required / Optional Description
auth-userid Integer Required Authentication Parameter
api-key String Required Authentication Parameter
order-id Integer Required Order ID of the Web Service order whose hosting panel password needs to be changed.
new-passwd String Required New password.

HTTP Method

POST

Example Test URL Request


https://test.httpapi.com/api/webservices/change-password.json?auth-userid=0&api-key=key&order-id=0&new-passwd=password1

Response

Returns status as success if the password is changed successfully.

Shared Hosting Limitations

All websites hosted on 's Shared Web Hosting servers are actively monitored, to ensure that they do not impact the
performance of other websites hosted on the same server.

Some of the parameters that websites are monitored for, are:

  • Number of concurrent/simultaneous connections a website can make to the server,

  • CPU utilization in terms of a percentage of what is set aside for websites hosted on the server,

  • Memory utilization in terms of a percentage of what is set aside for websites hosted on the server,

  • Number of concurrent/simultaneous processes a user can run on the server,

  • Number of concurrent/simultaneous Database connections a website can make,

  • Number of queries that can be run on a Database in an hour's span.

If your website exceeds the above mentioned resources, we recommend shifting your site to a Dedicated server, as your
website's resource requirements are greater than those available in a shared environment.

Enable SSL

Description

Enables SSL for an existing Web Hosting Order. To learn more, click here.

Parameters

Name Data Type Required / Optional Description
auth-userid Integer Required Authentication Parameter
api-key String Required Authentication Parameter
order-id Integer Required The OrderId for which SSL needs to be enabled.
invoice-option String Required This parameter will decide how the Customer Invoices will be handled. Values can be: NoInvoice, PayInvoice, KeepInvoice, OnlyAdd

HTTP Method

POST

Example Test URL Request


https://test.httpapi.com/api/webservices/enable-ssl.json?auth-userid=0&api-key=key&order-id=0&invoice-option=NoInvoice

Response

Returns a map of the execution details of the enabling of SSL operation.