Back4App

Activating your Web Hosting and Live Query

Introduction

This section explains how you can configure a subdomain to your hosting account. After completing this step-by-step guide, you will be ready to use your Subdomain created in Back4App.

Prerequisites

To complete this tutorial, you will need:

How can I use the created subdomain?

When you enable the Web hosting feature is a guarantee that you can use more functionalities in Back4App side, so, it has the many different purposes that are described below:

1. Change the default serverURL

You can change the default URL https://parseapi.back4app.com/ to your subdomain * .back4app.io/. You will learn the process of setting up a subdomain later, in the following instructions.

2. Host Static Pages

The Back4App Documentation comprises various guides and tutorials to build a Web App using Angular, Ionic, React and Node!!!

3. Use Live Query in your App

To enable client-LiveQuery server interaction, it’s necessary to activate the Live Query in Web Hosting box and select the Class that will allow communicattion between the client and server. The section related to this as show below:

Live Query

4. Custom Domain appoint to your Back4App subdomain

This amazing possibility allows you set up a custom domain. All you need to do is create a CNAME DNS entry in your DNS provider, for example:

myapp.mydomain.com to myapp.back4app.io

Let’s get started to enable the Web Hosting!

Step 1 - Locate the feature block

To locate and enable your Web Hosting feature, log in to your Back4App account and go to the My Apps option and then click on Server Settings. After that, search for the Web Hosting and Live Query block and select Settings. The Web Hosting and Live Query section looks like this:

Step 2 - Enable the Activate Hosting box

Now, tick the checkbox with tag Activate Back4App Hosting and insert the available Subdomain name you desired to have, and then click on the Save Button to preserve the changes, same as shown in the example below:

With the guide described above, you’ll be able to set a Subdomain with Back4App and enable as well with various features, including Hosting Pages, changing your ServerURL, using Live Query, and creating your own Custom Domain!