Home  >  Q&A  >  body text

How nginx speeds up foreign websites

I recently considered starting my own business. When building a website, due to the special domestic conditions, I decided to put the website abroad. However, the latency of foreign hosts is relatively high and not very stable. After consulting domestic cloud hosts, I learned that as long as the purchased cloud The host only needs IP and does not need to be registered, and the port is not blocked. The current thinking is as follows:
Consider pointing the domain name to a foreign country, and from the foreign country to the domestic cloud host through nginx proxy or load,
But one thing is not clear. nginx has multiple load methods. So when a user accesses, does the data processed by the nginx back-end server directly return to the client, or does nginx return the processed data to the client again?
How to write the load configuration file?
I considered CDN, but it was too expensive to use.

漂亮男人漂亮男人2712 days ago632

reply all(2)I'll reply

  • phpcn_u1582

    phpcn_u15822017-05-16 17:28:35

    Since it is a business start-up targeting the domestic market, it is not recommended to deploy servers abroad. You have already registered your company with industrial and commercial registration, so why would you still find it troublesome to file it? . .

    reply
    0
  • 高洛峰

    高洛峰2017-05-16 17:28:35

    In this way, the reverse proxy delay will be greater. Assume that it takes 100ms for you to connect to a foreign server. It also takes 100ms for the foreign server to connect to Alibaba Cloud. The total response time will be greater than 200ms

    reply
    0
  • Cancelreply