46

彻底弄懂 Nginx location 匹配

 4 years ago
source link: https://juejin.im/post/5ce5e1f65188254159084141
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Nginx 的 location 实现了对请求的细分处理,有些 URI 返回静态内容,有些分发到后端服务器等,今天来彻底弄懂它的匹配规则 一个最简单的 location 的例子如下 server { server_name website.com;

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK