User Tools

Site Tools


nginxarchitecture

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
nginxarchitecture [2024/10/27 02:51] – [Basic Nginx Configuration] adminnginxarchitecture [2024/10/27 02:55] (current) – [Basic Nginx Configuration] admin
Line 71: Line 71:
     try_files $uri $uri/ /test/index.html;     try_files $uri $uri/ /test/index.html;
 } }
-</code> => you probably understand: +</code> => you probably understand:<code> 
-    * **location /** => matches all locations** +location / => matches all locations** 
-   +try_files $uri =>try $uri first, for example http://example.com/images/image.jpg nginx will try to check if there's a file inside /images called image.jpg if found it will serve it first. 
 +$uri/=> which means if you didn't find the first condition $uri try the URI as a directory 
 +</code>
 ===== Optimize nginx configuration for performance and benchmark ===== ===== Optimize nginx configuration for performance and benchmark =====
 refer: refer:
nginxarchitecture.1729997516.txt.gz · Last modified: 2024/10/27 02:51 by admin