Nginx What is the dynamic and static separation in ？
Generally speaking , Both dynamic and static resources need to be separated , because Nginx High concurrency and static resource caching , Often deploy static resources in Nginx On . If a static resource is requested , Get resources directly from static resource directory , If it is a dynamic resource request , Using the principle of reverse agent , Forward the request to the corresponding background application for processing , So as to realize dynamic and static separation .
After separation of front and rear ends , Can greatly improve the access speed of static resources , Even if dynamic services are not available , Access to static resources will not be affected .
Read more here: Source link