Use scenarios: The jump path needs to be dynamically configured according to the intercepted URL, which is common in accessing files and pictures with non-fixed IP addresses in the intranet. Request address: http://11.19.1.212:82/bimg4/32.52.62.42:222/DownLoadFile?filename=LOC:12/data/20180208/15/2e0ae54dfd752210083404deed15269c_222403 The actual intranet address to be accessed: http://32.52.62.42:222/DownLoadFile?filename=LOC:12/data/20180208/15/2e0ae54dfd752210083404deed15269c_222403 nginx configuration file server { listen 83; server_name localhost; index index.html index.htm; root D:/workspace-xxxx/xxx_Web; error_page 500 502 503 504 / 50x.html; location = /50x.html { root html; } location ^~ /xxx/ { proxy_pass http://192.168.60.36:8090/xxxx/; proxy_redirect default; proxy_set_header Host $host; proxy_set_header X - Real - IP $remote_addr; proxy_set_header X - Forwarded - Host $host; proxy_set_header X - Forwarded - Server $host; proxy_set_header X - Forwarded - For $proxy_add_x_forwarded_for; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "Upgrade"; } # Here is the path after bimg4 in the request address and assigned to the forwarding address location ^ ~ / bimg4 / { if ($request_uri~ / bimg4 / (. * )) { set $bucketid $1; } proxy_pass http: //$bucketid; } } This is the end of this article about how to forward URL parameters in Nginx. For more information about Nginx URL forwarding with parameters, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: MySQL master-slave replication delay causes and solutions
>>: js canvas implements verification code and obtains verification code function
We know that there are two ways to receive incomi...
This article will introduce how to use Docker to ...
Table of contents 1. Front-end leading process: 2...
Occasionally you'll see characters such as ...
1. Online Text Generator BlindTextGenerator: For ...
Table of contents 1. Conditions for joint index f...
Overview Nginx load balancing provides upstream s...
The purpose of writing scripts is to avoid having...
Table of contents Preface Jump to APP method URL ...
Table of contents 1. Optional chaining operator [...
load Request Success Request failed Click cmd and...
In Nginx, there are some advanced scenarios where...
We often see ads appear after a few seconds and t...
As the data stored in the MySQL database graduall...
This article shares the specific code of JavaScri...