LogoLogo
HomepageResellerPricingSign in
  • AppMachine
  • ๐Ÿ“ƒProduct Updates
  • ๐Ÿ‘ทBuild your app
    • Preview your app
    • App templates
    • App Settings
    • Update payment method
    • Cancel subscription
  • โ”General App Building FAQ
  • How to
  • ๐ŸงฑBlocks
    • ๐Ÿ” Admin
    • ๐Ÿ“„Blank Page
    • ๐Ÿ“žCall
    • ๐ŸขContact
    • ๐Ÿ“Contact Us
    • ๐ŸงพCoupons
    • ๐Ÿ“ƒCustom Form
    • ๐Ÿ“งEmail
    • ๐Ÿ—“๏ธEvents
    • โ”FAQ
    • ๐ŸŒFacebook
    • ๐Ÿ•‘Hours
    • โ„น๏ธInformation
    • ๐Ÿ“ฃIntro
    • โ˜•JavaScript
    • ๐Ÿ”’Lock
    • ๐ŸŽงMusic
    • ๐Ÿ“ฐNews
    • ๐Ÿ“ƒPDF
    • ๐Ÿ—บ๏ธPOI
    • ๐Ÿ‘ฅPeople
    • ๐Ÿ“ทPhotos
    • ๐ŸฌProducts
    • ๐Ÿ“ฉPush Messages
    • ๐Ÿ“ปRadio
    • โ†ช๏ธSubmenu
    • ๐ŸฆTwitter
    • ๐Ÿ‘จโ€๐Ÿ’ปURLs
    • ๐Ÿ–ฅ๏ธWeb Page
    • ๐Ÿ“บVideo
    • ๐Ÿ“ฑWhatsApp
  • ๐Ÿ“ƒData
    • Appmachine Data
    • Delete (test) data from Custom Form
    • Google Sheets
    • Web services
  • ๐Ÿ–Œ๏ธStyle your app
    • Theme
    • Home Screen
    • FAQ Style
  • ๐ŸŽจStyle your screens
    • Elements
  • Share your app
    • โœˆ๏ธPublishing your app
      • Technical Setup Quick Start Guide
      • Update your app
      • Unpublish an app from the app stores
    • ๐ŸŒWeb App Publishing
      • Hosting on custom domain
    • ๐ŸApple App Store
      • iOS developer account
      • App Store Connect API keys
      • Link your app
      • New app record in App Store Connect
      • App privacy details
      • Edit Store information
      • Fix App publish issues
      • Push certificates
      • App Store Connect app status overview
      • App Store Review Guidelines
      • Publish app Unlisted
      • Accept updated License agreement
      • Apple App Store FAQ
      • iPad
      • Enterprise
        • Setup your Enterprise app
        • Create iOS Distribution Certificate
        • Create App ID
        • Create Mobile Provisioning Profile
        • Downloading and installing an Enterprise app
    • ๐ŸGoogle Play
      • Create a Google Developer Account
      • Setup your Android app
      • How to request a Google Maps API Key
      • Test your Android app before publishing to Google Play
      • Upload your Android app to Google Play Store for the first time
      • Update Android app (short)
      • Update an Android app (extended)
      • Data safety details on the Google Play Store
      • Sell your app in Google Play Store
      • Create Google merchant account
      • Force Store Update for your Android App
      • Authorise an additional user to your Google Play developer account
      • What if my app is suspended by Google?
  • App details
    • ๐Ÿ•ต๏ธGoogle Analytics
      • Google Analytics setup overview
      • Setup iOS analytics
      • Setup Android analytics
      • Inviting a new Google Analytics user
    • ๐Ÿ”ฅFirebase
      • Create Firebase project
      • Locate Firebase Server key
      • Renew Firebase Server Key
      • Register iOS app
      • Register Android app
      • Enable Cloud Messaging
      • Enable Google Analytics
      • Google Analytics via Firebase
    • ๐Ÿ“จPush notifications
      • Setup Apple Push certificate
    • ๐Ÿง‘โ€๐Ÿคโ€๐Ÿง‘User management
      • Create Apple Sign In key
      • Setup Azure Active Directory
      • Create Facebook App ID Secret
    • ๐ŸฆTwitter API keys
    • ๐Ÿ”Privacy policy
    • ๐Ÿ‘ฉโ€๐Ÿ”งYour Account
      • Account Settings
      • Account FAQ
      • Payment FAQ
    • ๐Ÿ“ฑAdmin CMS
  • Developers
    • ๐Ÿ‘ฉโ€๐Ÿ’ปJavaScript
      • Develop locally
      • SDK
        • Core
        • JS Data
        • Media
        • Navigation
        • Notification
        • User
      • CLI
        • CLI Token and Secret
        • Errors
          • CONFIG_PROPERTIES_INVALID
          • CONFIG_VALUES_INVALID
          • ENTRY_FILE_NOT_FOUND
          • OUTPUT_DIRECTORY_IS_EMPTY
          • OUTPUT_DIRECTORY_NOT_FOUND
          • TOKEN_SECRET_NOT_PROVIDED
          • TOKEN_SECRET_NOT_VALID
      • Migrate from old Custom JS
    • ๐Ÿ’ปWeb services
Powered by GitBook
On this page
  • 'Hosting' via CNAME
  • 'Hosting' via ALIAS
  • When to use which?
  • Linking your domain

Was this helpful?

  1. Share your app
  2. Web App Publishing

Hosting on custom domain

PreviousWeb App PublishingNextApple App Store

Last updated 2 years ago

Was this helpful?

In order to 'host' your Web App on a custom domain, the following is required:

  • A domain, as well as access to the domain's DNS settings.

  • A published Web App, either Preview or Production.

As you may have noticed, 'host' is written in parentheses. This is because this article does not explain how to actually host the Web App on your own domain, but how you can make it appear as if your Web App is hosted on your own domain. The way we're going to achieve this is by adding either a CNAME or ALIAS record to your domain's DNS settings.

Before we start, let's first explain the terms CNAME and ALIAS so that you have a better understanding of what we're doing here.

'Hosting' via CNAME

CNAME records can be used to alias one name to another. Take for example these two URLs:

URL #1: appmachine.com URL #2: www.appmachine.com

Both addresses point toward the same application and are hosted by the same server. However, only appmachine.com points towards the server IP address. The prefix (subdomain) to the other URL www. is actually a CNAME record that points towards appmachine.com.

Now, let's say we've created a Web App with AppMachine which is published on the URL 1234ab.myinstant.app. If we create a CNAME record for webapp. within the appmachine.com DNS settings, and point it towards 1234ab.myinstant.app, then we will be able to view our published web app by navigating to the URL webapp.appmachine.com.

'Hosting' via ALIAS

An ALIAS provides CNAME-like behaviour, but does so on the apex domain rather than on the subdomain.

Let's say we have our published Web App 1234ab.myinstant.app again, and this time, instead of webapp.appmachine.com, we want appmachine.com to display the published Web App. Because we want to point the apex domain toward a different domain, we use an ALIAS with the name appmachine.com and point it towards 1234ab.myinstant.app.

When to use which?

Generally speaking, if you've bought a domain for the sole purpose if displaying your Web App, and you wish for your app to visible on the apex domain URL, then you'll use an ALIAS to accomplish this.

If you already have a website and you wish to make your Web App available via a subdomain on the same URL, then you use a CNAME to accomplish this.

Linking your domain

To link your domain to your AppMachine Web App, open the Web App info page in AppMachine and click the 'Link custom domain' button.

Next, enter the domain on which you'd like the Web App to become visible. This can be a subdomain if you'll be using a CNAME-record, or the apex domain if you're using an ALIAS.

Finally, login to your domain's control panel and open the DNS settings page. Depending on your choosing, add either a CNAME or an ALIAS to your DNS settings with the record name and value displayed in AppMachine.

After clicking the Finish button, our systems will check whether the domain you've provided can be reached, and whether the references have been configured correctly. If everything checks out, the Custom DNS status on your Web App info page will state 'Linked'.

๐ŸŒ