Message:

Subscribe rss
Blog categories
All | Backendless features
Feature 33: Mapping a domain name to your Backendless file storage
February 9, 2015 by markpiller
Spread the love

Backendless File storage can be used to host web applications. The file storage includes a special directory – “/web” which is used to host web application content. Since the default URLs for files in your file storage are rather long and use the backendless.com domain, it may be desirable to map a custom domain name to your Backendless backend and specifically the file storage. Note that at the time of writing of this post, this feature is available for the applications in the Backendless Plus pricing plan, but that may change in the future.

Before you proceed with the instructions for mapping a domain name, make sure to add a credit card and switching to the Backendless Plus plan using the Billing screen located in the Manage section of Backendless console.

The domain name mapping feature is available in Backendless console:

  1. Login to Backendless console, select an app, click the Manage icon.
  2. Select the Custom Domain option from the scroll to drop-down list or scroll the page to the Custom Domain section.
  3. The section provides the instructions, but in short what you need to do is:
    • Go to your DNS admin and create a CNAME record.
    • The record must map your domain name to backendless.com
    • Once the mapping is established, return back to Backendless console and copy the domain name to the Domain name field.
    • Click the Save button to save the changes.

For example, I created a CNAME alias for a subdomain on a domain name I own: web.chattingplanet.com:
dns chatting planet - Feature 33: Mapping a domain name to your Backendless file storage

Once the CNAME alias was registered. I updated my Backendless backend with the domain name:
custom domain backendless - Feature 33: Mapping a domain name to your Backendless file storage

Then I updated index.html located in the web folder with some very basic content:
web index chattingplannet - Feature 33: Mapping a domain name to your Backendless file storage

Finally, when you navigate to http://web.chattingplannet.com, you get the following in your browser:
web.chattingplanet.com  - Feature 33: Mapping a domain name to your Backendless file storage

Enjoy!

Share this post
Tweet about this on TwitterShare on FacebookGoogle+