One of the most commonly used shared hosting framework is cPanel. So we will write our guide for it. But things should be similar in Plesk or any other solution.
After you have your main domain or subdomain active, and your site is up and running, you can make each restaurant to have its own domain. Like in our demo.
The main site is https://zebra-qr.com/ and there you can find all restaurants as they are in subfolder ex ( https://zebra-qr.com/restaurant/leukapizza ). But each restaurant can be also directly open for example: https://leukapizza.zebra-qr.com/ This feature is directly enabled in your POS Cloud site. But you will need to create a wildcard subdomain that uses the same folder as your main site.
- 1.Log into your cPanel.
- 2.Navigate to Domains section > Subdomains menu:
Click on Subdomain
- 1.Create a subdomain *
- 2.Enter * for Subdomain
- 3.Select your domain
- 4.Select ( enter ) the same document root - in this case /public_html
Enter * for Subdomain
- 1.Go to the Zone Editor menu:
- 1.Make sure that there is an A record for *.yourdomain.com created and pointed to the server IP address (it could coincide with the IP address of your main domain or ftp.yourdomain.com is pointed to):
- 1.Now, you will need to wait until the propagation is over (it should take N seconds, where N – is TTL for this A record; you can edit it manually and reduce the number to speed up the process), and then the wildcard subdomain will work correctly.
Each restaurant has automatically their own subdomain now. Open some restaurants on your site. Example:
In this case, the subdomain is malibudiner
- 1.Login as admin in your project and decare in Settings / Setup and select WILDCARD_DOMAIN_READY
Article Instructions copied from
By default the wildcard subdomains are not SSL protected. To do that you can buy or issue wildcard SSL certificate - sometimes they are a bit expensive. You can also use https://letsencrypt.org/ to create your own free wildcard SSL. Plesk by default can enable SSL on wildcard subdomain. You can also use this guide. Our demo site works on Laravel Forge. They also have the options to automatically create wildcard SSL via Digital Ocean NS.