Personal collation of information, reprint annotated source, thank you ~
nginx Introduction and Installation a simple configuration file Module Introduction Common Scenario Configuration Advanced Content reference materials
= = Nginx
nginx Reverse proxy configurationNginx Reverse proxy instructions do not need to add additional modules, the default comes with proxy_pass instructions, only need to modify the configuration file can be implemented reverse proxy.1. EnvironmentProxy
1 About Nginx ModuleNginx uses different modules to achieve different functions, there are mainly 2 groups of important modules:(1) Nginx core modules (required)including Main, Events(2) Standard HTTP modules (although not required, but will be
The previous chapters have compiled the Nginx event module, which begins to tidy up the HTTP module.
The initialization of the HTTP module is done in the ngx_http_block function in src/http/nginx_http.c. configuration of the HTTP module
Before
Preface?? Because the applet wants to use HTTPS, it cannot modify the configuration that is already wired. So the simplest way is to use nginx forwarding, use HTTPS on Nginx, and then forward to the internal server. Nginx due to its excellent
User www; #定义Nginx运行的用户和用户组Worker_processes 2; #nginx进程数, the recommended setting is equal to the total CPU core number.#error_log Logs/error.log; Global error Log definition type#error_log Logs/error.log Notice;#error_log Logs/error.log Info;#pid
One, the server prepares the situation, four sets:
1, the previous segment of the server:192.168.1.112 hosts directional test domain nginx.21yunwei.com192.168.1.113 Standby front-end server.Back-end Web server pool Web_pools:192.168.1.102192.168.1.1
Nginx Series Links:An introduction and installation of Nginx high Performance Web server seriesWww.cnblogs.com/maxtgood/p/9597596.htmlThe second command management of Nginx High Performance Web server
Webbench can simulate up to 30,000 concurrent connections to test the load capacity of the website, the personal feeling is better than the AB pressure test tool with Apache, installation and use is particularly convenient. 1. Applicable system:
I. nginx Introduction
Nginx (pronounced engine-x) is a free, open-source, high-performance HTTP server and reverse proxy, as well as an IMAP/POP3 proxy server. igor Sysoev started development of nginx in 2002, with the first public release in 2004.
# User GroupUser WWW;# Working Process: According to the hardware adjustment, some people say that a few CPU cores should be configured. I think it can be a little moreWorker_processes 5;# Error LogError_log logs/error. log;# PID File LocationPID
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.