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-674e2fb64c10a945209...
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...
1.stub_status Module installation
Use the command first to check if this module has been installed:
[crayon-674e2fb64c50a390520696/]
Uppercase -V will display information such as version number and modu...
This article is a supplement to the previous article:
Optimization reference for Nginx in high concurrency scenarios
Optimization of kernel parameters in the /etc/sysctl.conf file
1.net.ipv4.tcp_max_tw_buckets
...
Nginx often causes some performance bottlenecks because of high concurrent connections. Here are some optimization configurations for your reference.
The main focus here is on the optimization of the NGINX configurat...
1.Install gcc
Nginx source code compilation depends on the gcc environment
[crayon-674e2fb64ce63240731989/]
2.Install PCRE pcre-devel
PCRE (Perl Compatible Regular Expressions) is a Perl library that inc...
Here mainly introduces How to run 2 or more nginx on one server at the same time.May be written a bit general.
Install multiple Nginx at the same time
If you need to install two or more Nginx on one server, then...
This article mainly introduces Nginx's most basic nginx commands such as starting, stopping, viewing, and testing configuration files on Windows servers.
Nginx command: start nginx
After installing nginx on Wind...
Foreword
The common way to build a website is to use a web server to parse the file entry file. For example, using Nginx, Apache parses the corresponding entry file, but with the development of technology, some lan...
After the server is configured, you also need to enable gzip to compress the returned data to speed up the loading of the site.
Here's how to enable gzip on Nginx (add it to the configuration file):
[crayon-67...