search

Home  >  Q&A  >  body text

nginx - If there is a website with separate front-end and back-end that uses a dynamic CDN service (such as Website TV, Accelerator), how are the user's dynamic requests (login, submission) sent to the real server?

It is said that services such as 360 Website TV and Accelerator can hide the real IP. This is a good thing for webmasters who are often attacked by DDOS.

But I just don’t understand. Is it okay if my website is separated from the front and back ends?

If the address requested in ajax is the address through nginx upstream proxy, if the static js request is /api/get/1, but this /api is actually a dynamic address of my backend, how can I initiate ajax in this way? The request is forwarded to my backend api server?

ringa_leeringa_lee2779 days ago662

reply all(3)I'll reply

  • 黄舟

    黄舟2017-05-16 17:16:33

    Static resources go through CDN, other program files do not go through CDN

    reply
    0
  • 黄舟

    黄舟2017-05-16 17:16:33

    Just don’t use CDN to log in to this user-related interface.

    reply
    0
  • 阿神

    阿神2017-05-16 17:16:33

    CDN-content distribution network, mainly for optimizing front-end static resource http requests, the back-end interface does not require a CDN server

    reply
    0
  • Cancelreply