How to configure nginx to return text or json

V Records 28,754 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,937 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-6654acf4e5e58287906...

Nginx access_log log analysis and configuration

V Records 4,048 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...