Nginx Web Service Optimization

Source: Internet
Author: User
Tags file url

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

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.