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:36] – [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 the first part, **location / matches all locations**, unless it'matched by more specific location, like location /test for example+</code> => you probably understand:<code> 
 +location / => matches all locations** 
 +try_files $uri =>try $uri firstfor 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.1729996596.txt.gz · Last modified: 2024/10/27 02:36 by admin