K
K
killerben2020-03-07 08:40:29
CDN
killerben, 2020-03-07 08:40:29

Is it possible to show one site from different hostings?

Is it possible to somehow sort by user agent and send some to hosting 1, and others to hosting 2.

Like tds only at the dns level.

I googled that it’s possible to do something through cdn, but this is most likely not the right option.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
A
Antonio Solo, 2020-03-07
@solotony

at the DNS level, the user agent is unknown. the user agent is known in the HTTP request, in order to analyze it you will need either a proxy (now they use nginx) or a web server (but here only a redirect to another domain name).

K
Konstantin B., 2020-03-07
@Kostik_1993

If it is at the DNS level, then use dns balancer
You can also balance through ngnix

D
Dimonchik, 2020-03-07
@dimonchik2013

it is possible if hosting capabilities allow dns to be configured correctly, with servers (at least VPS) it is easier

A
Andrew Turbay, 2020-03-08
@Aslan_Tilanhem

Nginx as a balancer and proxy

F
Foxcloud Foxcloud, 2020-03-10
@FoxCloud

It is possible to implement. There are also many possible options. We can offer the following:
1. Place the DNS zone of the site.
2. Configure A-record website.com on host A and website m.website.com on host B.
3. On host A, configure .htaccess
RewriteCond %{HTTP_USER_AGENT} Opera
RewriteRule ^(.*)$ m.website. com/$1 [L,R=301]
Thus, Opera browser users will be redirected to m.website.com
There are many ways to implement it. The above is one of the possible options that may help you.
Good luck!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question