How to configure nginx to return text or json

V Records 26,929 Views
Sometimes when you request some interfaces, you need to return the specified text string or json string. If it is a simple logic or a fixed string, you can use nginx to implement it quickly, so you don't need to write...

Nginx blocks mobile(pc) access

V Records 2,690 Views
Sometimes because of the demand, we need to distinguish between the PC side and the mobile side of the visitor. Here are a few simple ways to introduce: Nginx Block mobile access: [crayon-65f903ff548d5743931...

Nginx access_log log analysis and configuration

V Records 3,799 Views
Foreword: Through the log, you can know the user's address, which parts of your website are most popular, the user's browsing time, and targeted optimization for most users' browsers. Nginx's logs are divided into...
Go