Nginx Web Service Optimization
1.nginx Basic Security optimization
Adjust parameters Hide Nginx software version number information
Change the source hidden Nginx software name and version number
Change Nginx service to Default User
2. Optimize Nginx service performance according to parameters
Optimize Nginx service number of worker processes
Optimized binding different nginx processes to different CPUs
Optimization of Nginx Event processing model
Adjust the maximum number of client connections allowed for an nginx single process
Configure the maximum number of open files for Nginx worker process
Optimize hash list size for server domain names
Turn on efficient file transfer mode
Optimize Nginx connection parameters and adjust connection timeout time
Upload file size limit (Dynamic app)
Fast CGI-related parameter tuning (with PHP engine dynamic service)
Configure Nginx gzip compression for performance optimization
Configuring Nginx expires cache for performance optimization
3.nginx log-related optimization and security
Scripting for Nginx Access log polling
Access logs not required for different records
Permission settings for access logs
4.nginx Site directory and file URL access control
Restrict program and file access based on extension
Disable access to all files and directories under the specified directory
Restricting site Source IP access
Configure Nginx, prohibit illegal domain name resolution access to corporate website
5.nginx Image and catalog anti-theft chain solution
Elegant display of the 6.nginx error page
7.nginx Site Directory file and directory permissions optimization
8.nginx Anti-crawler optimization
9. Using Nginx to restrict HTTP request method
10. Use CDN for website content acceleration
11.nginx Program Architecture Optimization
12. Use normal user to start Nginx (prison mode)
13. Control the number of Nginx concurrent connections
14. Controlling the rate of client request Nginx
This article comes from "lone man quick!" The walkers are far away! "Blog, be sure to keep this provenance http://syaving.blog.51cto.com/5614476/1869946
Nginx Web Service Optimization