Home Custom domain feature for saas product customers
Reply: 0

Custom domain feature for saas product customers

user1460 Published in July 15, 2018, 9:19 pm

I have build a saas product with angular 4 integrated with golang rest api and uploaded the build on aws ec2 instance. My project is a multi-tenant based app which loads customers dashboard on merchant-name.mystore.com subdomain but some of the customers asking for custom domain feature like they should be able to load the app on mydomain.com .

I have done the the subdomain part with following code in apache2.conf file so all subdomain loads from apps folder where the angular app files located

<VirtualHost *:80>
    ServerAlias *.mystore.com
   DocumentRoot /var/www/html/apps
    <Directory "/var/www/html/apps">
        AllowOverride All
        Require all Granted

For custom domain feature I have a section in admin to save custom domain but not sure how should I implement it.

possible method I thought about are

  1. Create virtual host file and update it on each merchant signup with his custom domain
  2. Do it somehow with htaccess file and mod_rewrite

Shopify do it but not sure how they load merchant specific store. Another point kept me busy thinking about is what values should I ask to update

  1. IP address on domain registrar
  2. Name servers ( not sure what it will be for my on aws )
  3. Ask to create CNAME or A record as some of the article suggest
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.348375 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO