• How to set up the virtual subdomains?

    • views 1144

    I have a problem for you. site.com/ru and site.com/en have to be on different servers (one in Russia, the other in the US). Can you help me? Is it possible to set it up this way and how? The developer said he can set up virtual subdomains, but as far as I know, that would just redirect from ru.site.com to site.com/ru but I need these sites to be on different servers.

    Solutions (1)
    You can solve this problem using a reverse proxy server, which can be either Apache or Nginx. That way the proxy server will direct all requests to site.com/ru to the server that is located in the RF, and similarly all requests to site.com/en to the server that is in the US. The benefit of this approach is suspect, because eventually the client will receive all data from a proxy server whose geographic location stays the same. Indeed, it is easier to use the option with subdomains: en.site.com - in the US, and ru.site.com - in the Russian Federation.
    Answers (2)
    You can do this with Nginx, but in both cases, /ru and /en IP will be from the (same) server where NGINX is located, and the actual content will be on different servers. Creating different IPs is physically impossible, because the root domain is the same.
    This is technically impossible to do, because both these addresses are one domain, it will probably be easier to do site.com in the US and ru.site.com in the Russian Federation, this is possible and easy to do.

We do our best for you!
Rate the article
Tell the world about it

Users (0) 0 of 5

  • In order to provide you with the best online experience this website uses personal data (cookies, IP, email, photo, name, website, etc). By using our website, you agree to our use of your personal data. More info we get commissions from the hostings, but our ratings are honest and the reviews are real.

  • Rewards for reviews