Z
Z
Zaur Ashurbekov2016-11-20 17:55:18
Ruby on Rails
Zaur Ashurbekov, 2016-11-20 17:55:18

How to run different versions of a site across different domains but on the same backend?

Hello Toaster!
It is necessary to make sure that on the site, depending on the domain, certain data on the pages changes. The whole point is that you need to create / delete versions of the site with a new address already during the operation of the site, through the admin panel, i.e. already on the fly. Maybe someone has a similar experience in life, and how did you solve this problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
_
_ _, 2016-11-20
@zaurius

You direct all subdomains to one ip-address through a wildcard-record in DNS. When you receive a request on the backend, parse the hostname and make the necessary gestures. Locally, you can add several entries like test1.local.com, test2.local.com to hosts on 127.0.0.1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question