Found a total of 2 related content
How to use proxy_pass in Nginx
Article Introduction:1. nginx official guide for proxy_pass. There are two modules in nginx that have proxy_pass instructions. Proxy_pass of ngx_http_proxy_module: Syntax: proxy_passURL; Scenario: location, ifinlocation, limit_except Description: Set the protocol and address of the back-end proxy server, and an optional URI that can be matched in location. The protocol can be "http" or "https". address
2023-05-16
comment 0
926
What is the difference between nginx location and proxy_pass
Article Introduction:Pre-test access domain name: www.test.com/api/upload1.location and proxy_pass both contain /, then the real address without location matches the directory location/api/{proxy_passhttp://127.0.0.1:8080/;} access address :www.test.com/api/upload-->http://127.0.0.1:8080/upload2.location does not contain /, proxy_pass contains /, then the real address will contain /location/api{proxy_passhttp:/
2023-05-16
comment 0
878