In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the relevant knowledge of "how to realize Nginx Hidden Jump". The editor shows you the operation process through an actual case. The operation method is simple, fast and practical. I hope this article "how to realize Nginx Hidden Jump" can help you solve the problem.
The hidden jump of Nginx enables the request to be redirected to a page of another website, and the URL remains the same in the browser. Rewrite rules are required in the Nginx configuration. Here are two examples to illustrate the configuration of this jump requirement:
1. Nginx hidden jump configuration example 1
Jump the request path https://jb51.net/data/test to the https://jb51.com/data/test/test.html page.
Server {listen 443; server_name jb51.net; access_log / data/nginx/logs/jb51.net-access.log main; error_log / data/nginx/logs/jb51.net-error.log; ssl on; ssl_certificate / data/nginx/ssl/jb51.net.crt; ssl_certificate_key / data/nginx/ssl/jb51.net.key; ssl_session_timeout 5m Location = / data/test {rewrite / data/test/ data/test/test.html break; proxy_pass https://jb51.com;}} II. Nginx hidden jump configuration example 2
Jump the request to access 172.16.60.16:8082/m2/order/secretRecording to 172.16.60.28:8089/order/secretRecording
Server {listen 8082; server_name 172.16.60.16; index index.html index.php index.htm; location ~ * ^ / m2/order/secretRecording {proxy_next_upstream error timeout http_503 http_504 http_502; proxy_connect_timeout 500s; proxy_read_timeout 500s; proxy_send_timeout 500s Proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; rewrite ^ (. *) $/ order/secretRecording break; # rewrite the URI address proxy_pass http://172.16.60.28:8089; first # Jump}} this is the end of the introduction to "how to achieve Nginx Hidden Jump". Thank you for your reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.
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.