can add
Ssi off;.
5.
Disable server flag. If it is enabled (by default), all error pages will display the server version and information. Set
Server_tokens off;Add the declaration to the Nginx configuration file to solve this problem.
6.
Set custom cache in the configuration file to limit the possibility of buffer overflow attacks.
Client_body_buffer_size 1 K;
Client_header_buffer_size
and execute the file.
There are now two good ways to solve these problems. I think it's necessary to make sure that you don't easily execute a hybrid method of arbitrary code.
Copy Code code as follows:
1. If the file is not found using try_files and only (should be noted in all dynamic execution cases), transmit it to the FCGI process running PHP.
2. Confirm that the Cgi.fix_pathinfo in the php.ini file is set to 0 (cgi.fix_pathinf
user, reducing the pressure on the backend web server and improving the response speed. Therefore, nginx also has the cache function. Workflow of reverse proxy: 1) The user sends an access request through the domain name, and the domain name is resolved to the IP address of the reverse proxy server; 2) the reverse proxy server receives the user's request; 3) the
1. Install the pcre Library required by Nginx:Tar zxvf pcre-8.10.tar.gz
Cd pcre-8.10/
./Configure
Make make install
Cd ../
2. Install Nginxtar zxvf nginx-0.8.46.tar.gz
Cd nginx-0.8.46/
./Configure -- user = www -- group = www -- prefix =/usr/local/webserver/nginx -- with-http_stub_status_module -- with-http_ssl_modul
Nginx introduction:
Official Website: http://nginx.org. Based on official documents, it is more useful for reference. Therefore, some common commands are translated in the form of additional URLs.
Click "simplified Chinese" to view the nginx features.
1. Automatic Indexing: in the same way as apache, when the webserver directory does not contain the first
This is an interesting one. I just learned it when I went to school.C LanguageWhen I started my first lesson on data structure, the teacher gave me the following question:Use programming: 1/1! + 1/2! + 1/3! +... + 1/n!Then I thoug
: This article describes the schematic Nginx-Nginx Process Model 1. for more information about PHP tutorials, see. After normal execution, Nginx will have multiple processes, the most basic of which are master_process (that is, the monitoring process, also known as the main process) and worker_process (that is, the wor
Here are 10 common security issues and solutions to make your nginx more secure.1. Use "if" carefully in the configuration file. It is part of the rewrite module and should not be used anywhere. An "if" declaration is a mandatory part of an override module evaluation directive. In other words, Nginx's configuration is generally declarative. In some cases, they ar
1. OverviewIn the course of running the game, drawing is a very big overhead. For the good and bad Android mobile phone market, draw better game, can be run on more mobile phones, so it is also the top priority of optimization. The optimization of graphics is mainly reflected in reducing the number of GPU draw times. Here we separately from the Automatic optimization rendering batch and draw culling two aspects of the new version on the drawing of the
the normal execution of Nginx will have a number of processes, the most basic master_process (that is, the monitoring process, also known as the main process) and worker_process (that is, the work process), there may be cache-related processes. These processes communicate with each other in order to pass some information (mainly the monitoring process is passed to the worker process). In addition to the communication between their own processes,
;
For more information, see the figure. The code will not be parsed here. although it looks complicated, it is quite convenient to use.
Common operations include creating hash and hash for search.
Create hash:
1. construct an array of ngx_hash_key_t members, including the key, value, and a hash value calculated using the key.
2. construct a variable of the ngx_hash_init_t struct, which contains the ngx_hash_t member. it is a hash struct and include
Windows 10 (3) and Windows 10
[Download source code]Backwater world war I Windows 10 (3)-UI: full screen window, window size
Author: webabcdIntroductionUI of Windows 10
Window full screen
Window Size
Example1. Full Screen Wind
Original hard, declined reprint!Virtual Machine DescriptionThis virtual machine is built to verify that the ASP. NET Core program can run on the CentOS operating system. #软件环境版本枚举os:centos Linux release 7.2.1511 (Core)OS kernel:linux version 3.10.0-327.36.3.el7.x86_64 ([email protected]) (GCC version 4.8.5 20150623 (Red Hat 4.8.5-4) ( GCC)) #1 SMP Mon Oct 16:09:20 UTCnginx:1.10.2dotnet:1.0.0-preview2-003121git:1.8.3.1This virtual machine setup step (f
Reverse Proxy and load balancing
One, the traditional agent (APACHE/SQUID) of synchronous transmission and nginx asynchronous transmission of the difference.
Second, synchronous transmission and asynchronous transmission comparison
Squid synchronous Transmission: The browser initiates the request and the request is immediately transferred to the background, thus creating a channel between the browser and the background. The channel is always pres
/httpd.conf)404 page does not exist
11.21 Apache Access Log• Access logs record each user's request[Email protected] ~]# cat/usr/local/apache2.4/logs/111.com-access_log abc.com-access_log access_log httpd.pid 111.com-error_log abc.com-error_log error_log[[email protected] ~]# Cat/usr/local/apache2.4/logs/111.com-access_log(Get is not add-i)• Define the format:[[email protected] ~]# vim/usr/local/apache2.4/conf/httpd.conf search LogformatReferer, the web address that the browser visi
1. Overview
During the running of the game, drawing images is very costly. For the mixed Android mobile phone market, creating well-optimized games can run on more mobile phones, which is also the top priority of optimization. Graphics optimization is mainly reflected in reducing the number of GUP draws. Here we will look at the optimization of the new version in terms of Automatic Optimization of rendering batches and rendering removal.
2. Automatic
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.