Coming soon: Landing Framework - White label marketing for agencies.

Documentation

Mobile Platform

Custom domains

By default mobile websites will have a url like example.com/mobile/XXXX-XXXX-XXXX-XXXX. But you can use any custom domain you own like m.example.com or anotherexample.com.

Custom domain for mobile site

First, point the CNAME record of your domain to the host where you've installed Mobile Platform (e.g. mymobilesites.com). Then there're two approaches to use a custom domain.

1
Manual

You can add a custom domain to your control panel (cPanel, Plesk, Direct Admin, etc.). You will have to add this domain (in some control panels it's called a parked domain or domain alias) to the account in which you have installed Mobile Platform. Then you go to your app and enter the domain at Apps > Edit App > Options > App settings > Custom domain.

Example

For example, you have installed the product on platform.example.com and you have created a mobile site. Now you want to link the domain mycustomdomain.com to this site.

  1. First, you update the DNS of mycustomdomain.com. Add an A record pointing to the IP address of platform.example.com or — in case you're using a load balancer or dynamic IP — you can add a CNAME record with value of platform.example.com.
  2. Then you have to add the domain to the control panel of platform.example.com. To the same account where you've installed the product.
  3. And finally you enter the domain at Apps > Edit App > Options > App settings > General > Custom domain.

2
Wildcard DNS

If you don't want to manually add domains to your control panel for every mobile site, it is possible to use a wildcard DNS for custom domains. For this you need SSH access to your server. Wildcard domains can be enabled in the Apache httpd.conf file, usually found at /etc/apache2/httpd.conf, but this depends on your server setup and OS. The file should look something like this, depending on your domain and the installation location of the script:

NameVirtualHost *:80  
<VirtualHost *:80>  
    DocumentRoot "/var/www/mobile-platform/"
    ServerName mydomain.com
    ServerAlias *
</VirtualHost>

Usually this is only possible on a VPS or dedicated server. Please contact your hosting provider for questions regarding this configuration.

Once you've completed this configuration, you can add any domain — with its CNAME record pointed to your server — at Apps > Edit App > Options > App settings > Custom domain.