How to configure nginx to return text or json

V Records 10,597 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 1,227 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-61a61544ef336583183...

Nginx access_log log analysis and configuration

V Records 2,147 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