In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to use nginx forward proxy to forward private network domain names. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.
In the customer's private network environment, ppoe is used to dial up the Internet, and the provider is a second-level operator within the group. The network environment is relatively complex. Static routing protocols are used to interconnect the group's internal network and office network. The general situation is as follows:
Originally, customers access the production business through the ip address. With more and more production business, customers now strongly require the use of domain names to access the business. However, in view of the complexity of the intranet environment, it is difficult to deploy domain name servers, and it is also difficult to deploy access services.
Later, I learned from nginx that nginx can achieve forward proxy to achieve domain name forwarding. The overall idea is as follows:
Description:
1. Configure domain name resolution on Aliyun. For example, OA.XXXX.COM, the resolution address is the private network address 172.31.101.36
2. 172.31.101.36 is the vip address provided by two nginx configuration keepalived
3. The general access process is that the customer accesses the domain name, resolves the domain name to the VIP private network address, and forwards the domain name request to the specified private network server by the private network nginx service.
In order to complete the whole process, the nginx server must be able to access the external network and be connected with the designated production server in the internal network, and the domain name can be resolved normally after the customer PPO dialing.
For the configuration of nginx and keepalived, you can refer to the previously written
Https://www.jb51.net/article/136077.htm
What needs to be explained is the configuration of nginx proxy forwarding. I use the sub-configuration mode.
Create a new configuration file in the / application/nginx/conf/conf.d directory
Vim oa.xxxxx.com.conf
Write as follows
For detailed grammar and functional modules, please refer to the official manual.
After the configuration is complete, check the nginx syntax and restart the nginx process
/ application/nginx/sbin/nginx-t/application/nginx/sbin/nginx-s reload
After the configuration is completed, check whether the domain name is valid.
This is the end of the article on "how to use nginx forward proxy to achieve private network domain name forwarding". I hope the above content can be helpful to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
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
© 2024 shulou.com SLNews company. All rights reserved.