How to configure nginx to return text or json

V Records 8,718 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,044 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-60fc789347040885919...

Nginx access_log log analysis and configuration

V Records 1,927 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...

Nginx installation(Centos7)

V Records 625 Views
1.Install gcc Nginx source code compilation depends on the gcc environment [crayon-60fc78934ace0338142625/] 2.Install PCRE pcre-devel PCRE (Perl Compatible Regular Expressions) is a Perl library that inc...
Go