Nginx | reverse proxy server load balancer | principle and configuration | preliminary study
Nginx | reverse proxy server load balancer | principle and configuration | preliminary study
Nginx
ObjectiveReverse proxy refers to the way users access the server backend by proxy server through the same server. (See Baidu Encyclopedia https://baike.baidu.com/item/Reverse Proxy/7793488)?Application scenario of Nginx reverse Pr
output logs are minimal.
The PID is used to specify the location of the file where the process ID is stored.
The worker_rlimit_nofile is used to specify the maximum number of file descriptors a Nginx process can open, which is 65535 and needs to be set using the command "Ulimit-n 65535". Events Module
The events module uses the specified nginx operating mode and operating mode, and the maximum number of co
important , if you do not save gitclonessh://[emailprotected]/~/git/nginx.git/local C drive will be more than one site folder into the local "Command promptwithrubyandrails "Rhcsetupcdmysite (nginx) vi.openshift/ action_hooks/start#!/bin/bash#thelogictostartupyourapplication Shouldbeputinthis#script.theapplicationwillworkonlyifitbindsto# $OPENSHIFT _internal_ip:8080#nohup$ openshift_repo_dir/diy/testrubyserver.rb $OPENSHIFT _internal_ip $OPENSHIFT _r
Nginx is a high-performance HTTP and reverse proxy server that supports reverse proxy acceleration such as httpmail. It uses threads to respond to user requests.
The advantage is that the memory usage is small, but it is not stable. With the epoll mechanism, the maximum numb
Recently debug public number function, do not want to submit to the server every time to read the log
So on the server with the Nginx reverse proxy to the server 80 port received the request forwarded to the 127.0.0.1:9000
Then using SSH to tunnel the server 9000 port mapped to my local development machine 80
SSH Tunnel Reference http://my.oschina.net/magicly007
1. Installation
1) Download the latest version of Nginx (currently version 1.9.2) from the Nginx official website download page (http://nginx.org/en/download.html) to install the package;
2) Copy to the deployment directory after decompression.
2. Start and stop Nginx
Nginx currently only supports command line operatio
NGINX reverse proxy server configuration
The system is CENTOS5.9.
Http://nginx.org/packages/centos/5/noarch/RPMS/nginx-release-centos-5-0.el5.ngx.noarch.rpm wget-c
Rpm-ivh nginx-release-centos-5-0.el5.ngx.noarch.rpm
Ulimit-HSn 65536
Yum-y install
nginx.csr OpenSSL ca-in nginx.csr-out nginx.crt-days=3650
3. Create a client browser certificate
(umask 077;openssl genrsa-out client.key 1024)
OpenSSL req-new-key client.key-out client.csr OpenSSL ca-in client.csr-out client.crt-days=3650
Convert a certificate in text format to a certificate that can be imported into a browser
OpenSSL pkcs12-export-clcerts-in Client.crt-inkey client.key-out client.p12
4. Configure
After lunch break to work, colleague said test site access interface appeared in the Too request request Header Or Cookie Large hint, thought fortunately is the test server problem, the impact is not small, but also hurriedly on the server to Test view, Open Nginx and UGWSI log and configuration, found that the back-end service logging is normal, and the test site access log has more than 700 m (only run two or three days without a few visits, a few m
code, not the installation directory, because this method is co-compiled, do not need to pre-compile installation Pcre,ssl,zlibThen there is:makemake installPerformIn accordance with the above installation method, Nginx installed in the/data/nginx./data/nginx/sbin/nginx -c /data/n
Access of Sparkui based on Nginx reverse proxy
Scenarios and scenarios
In the case of Spark cluster deployment, only master has a public network Ip,worker machine does not have a public IP, if you want to access the run on the master machine Sparkui, and need to view the log on the worker machine, there will be an inaccessible problem. A solution at this point i
Nginx reverse proxy load balancing cluster practice
Using Nginx as a server Load balancer and proxy web server, the data requested by the user is directed to the Nginx Server Load balancer, and
high-performance and highly available, the WebSocket protocol requires a load-balancing layer, Nginx supports WebSocket starting from 1.3, which can be used as a reverse proxy and load balancing for websocket programs. Nginx Configuration Note: See official documents said Nginx
: This article describes how to configure reverse proxy for Nginx. For more information about PHP tutorials, see. 1, first create a configuration file,/etc/nginx/sites-enabled/reverse-proxy.conf
The content is as follows, and each line must end with a semicolon
Upstream mo
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,
Nginx reverse proxy and load Balancing Deployment guide, as follows:
1. Installation
1 from the Nginx official website download page (http://nginx.org/en/download.html) download Nginx The latest version (is currently 1.5.13 version) installation package;
2 after decompres
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.