Optimization of Nginx: version hiding, timeout management and process management
Configure Nginx hidden version number
In the production environment, the version number of Nginx needs to be hidden to reduce security risks
View method
1. Use fiddler I to check the Nginx version number on the Windows client,Use "curl-i web address" command to view in CentOS system
The method of hiding version number in Nginx
1. Mod ...
Added by Roble on Fri, 15 Nov 2019 17:44:28 +0200
Nginx optimization log segmentation
Log segmentation
1. Too many log files in the enterprise server cause the following problems:1. It is inconvenient for development and operation and maintenance to query too large log files, especially when overtime workers are tired;2. Long time ago, log files were almost worthless, but manual cleaning was too cumbersome.At this time, a solut ...
Added by Hard Styler on Thu, 14 Nov 2019 22:22:12 +0200
Dry | CVE-2019-11043: Any Code Execution Vulnerability Analysis for PHP-FPM under Nginx specific configuration
Recently, Andrew Danau, a foreign security researcher, stumbled upon a bug in the processing of a specific request by the php-fpm component during the flag race (CTF: Capture the Flag): a particular constructed request could cause a php-fpm processing exception under a specific Nginx configuration, resulting in remote execution of arbitrar ...
Added by JeditL on Thu, 14 Nov 2019 09:48:58 +0200
Nginx Optimization - Hide Version Number and Page Cache Time
Configure Nginx Hidden Version Number
In a production environment, you need to hide the Nginx version number to avoid securityLeakage of vulnerability
View Method< Use fiddler I to view Nginx version number on Windows clientUse "curl-I web address" command to view in CentOS system
Nginx Hide Version Number MethodModify Profile Met ...
Added by freshneco on Wed, 13 Nov 2019 21:10:09 +0200
ab stress test under linux
ab introduction
ab is the abbreviation of Apache bench command
ab is apache's own stress testing tool. ab is very practical. It can not only test the web site access stress of apache servers, but also stress test other types of servers. For example, nginx, tomcat, haproxy, etc
Principle of ab
Principle of ab: the ab command will cr ...
Added by josephman1988 on Sun, 10 Nov 2019 23:48:05 +0200
Deploy your CRM program
Publish CRM You will use the following software
nginx
uWSGI
CentOS7
CRM Project File
virtualenv
supervisor
WSGI,uWSGI
Pthon web server development uses WSGI protocol (Web Server Gateway Interface)
The python web project generates a wsgi.py file by default, identifying the application module.
The production environment uses uWSGI, implements ...
Added by siwelis on Sun, 10 Nov 2019 11:40:38 +0200
Compile and install nginx 1.16.0 in CentOS 7 (full version)
I. installation dependency package
yum install -y gcc gcc-c++ pcre pcre-devel zlib zlib-devel openssl openssl-devel
Dependency package description:
1. Compilation depends on GCC environment, so it needs: gcc-c + +;
2. PCRE(Perl Compatible Regular Expressions) is a perl library, including perl compatible regular expr ...
Added by bluegreen1 on Fri, 08 Nov 2019 21:00:13 +0200
Using Nginx echo module to test location matching priority
The nginx echo module allows users to directly output strings in nginx, which is convenient for users to debug when configuring nginx. Document address: https://www.nginx.com/resources/wiki/modules/echo/ , github address: https://github.com/openresty/echo-nginx-module
1, installation
Here, take nginx version: nginx/1.10.3 (Ubuntu) of ubuntu ...
Added by sufian on Sun, 03 Nov 2019 06:01:12 +0200
http module of nginx
html pages
[root@python html]# echo first > first/1.txt
[root@python html]# echo second > second/1.txt
[root@python html]# echo third > second/1.txt
[root@python html]# echo second > second/1.txt
[root@python html]# echo third > third/1.txt
url address rewrite
rewrite Module: rewrite instruction
sysntax : rewrit ...
Added by Jack_Slocum on Fri, 01 Nov 2019 18:13:32 +0200
nginx actual operation (common command and configuration)
Article directory
1. Introduction to nginx
2. nginx common commands
3. nginx configuration
3.1 configuration code
3.2 code description and renderings
3.2.1 different port agents and different applications
3.2.2 renderings
3.2.3 different applications of the same port number agent
3.2.4 rend ...
Added by tomfra on Thu, 31 Oct 2019 17:12:35 +0200