Nginx Load Balancing

Source: Internet
Author: User

Cnblogs has many introductionsArticleNow:

Http://zzk.cnblogs.com? W = nginx % 20% E8 % B4 % 9f % E8 % BD % E5 % 9d % 87% E8 % a1 % A1

I just need to consider the website load problem. I downloaded nginx and played it with it.

 

1. Download and decompress the package to E: \ WEB \ nginx-1.0.9

2. Configuration

Server Load balancer

Upstream 192.168.86.229 {
Ip_hash;
Server 192.168.86.228: 80; # the same port is used to prevent Ajax security requests.
Server 192.168.86.229: 8080;

......
}

External site configuration

 
Server {Listen 80; SERVER_NAME192.168.86.229;Location/{proxy_pass http ://192.168.86.229;}
......
 
}
 
 
 
3. Start
 
CD/d e: \ WEB \ nginx-1.0.9nginx
 
4. Access http ://192.168.86.229You can assign different IP addresses to different servers.

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.