In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
The requirements are as follows:
There are multiple servers under the domain name. Now test for a certain area, so that IP users in a certain area can only access a certain server and test separately. If there is no problem, update all of them; if there is a problem, the impact is small, and the problem is found in time to solve the problem;
Solution:
Use nginx module to configure matching rules on the front-end Load Balancer forwarding machine;
nginx configuration vhost inside, domain name under the location section, add a paragraph of code
If $remote_addr matches ip, forward to abc_test_server;
server { listen 80; server_name abc.com.cn; access_log /dev/null; error_log /data/logs/error.log; location / { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; if ($remote_addr ~ "202.96.134.100") { proxy_pass http://abc_test_server; break; } proxy_pass http://abc_server; }}
Load Balancer configurations also require an additional segment
#abc_test onlyupstream abc_test_server { server 192.168.20.10:80; }#abc.com.cnupstream abc_server { server 192.168.20.11:80; server 192.168.20.12:80; server 192.168.20.13:80;}
The configured IP will be distributed directly to the backend server 192.168.20.10 for testing.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
Implement #! / bin/sh###ShellName:Square#Author:zkg#Cr with + sign
© 2024 shulou.com SLNews company. All rights reserved.