Nginx initial test for Server Load balancer (I)

Source: Internet
Author: User

Nginx is a powerful web server software and a good reverse proxy server software. Below we can quickly configure nginx through an instance to show its effect !!!


Environment:

Web Server1: 192.168.10.141
Web Server2: 192.168.10.142
Nginx Server: 192.168.10.145

Access Web Server 1, Web Server 2, and Nginx Server respectively







Step 1:
Vi nginx. conf


### Add a red block diagram ###

Step 2:


### Modify the content of the red area to echo the http {} declared area ###

Step 3:

/Etc/init. d/nginx restart

### Restart the nginx service ###

Verification:




### Now, the simple nginx reverse proxy is complete. In the next chapter, we will analyze it in a deeper level !!! ###










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.