The format is simple: proxy_pass URL; The URL includes: transmission protocol (http://, https://, etc.), host name (domain name or IP:PORT), and uri. Here is an example: proxy_pass http://www.xxx.com/; proxy_pass http://192.168.200.101:8080/uri; proxy_pass unix:/tmp/www.sock; There are several things to note about proxy_pass configuration: Assume server_name is www.xxx.com When requesting http://www.xxx.com/aming/a.html, the results of the above examples are Example 1: location /aming/ { proxy_pass http://192.168.1.10; ... } Result 1: http://192.168.1.10/aming/a.html Example 2: location /aming/ { proxy_pass http://192.168.1.10/; ... } Result 2: http://192.168.1.10/a.html Example 3: location /aming/ { proxy_pass http://192.168.1.10/linux/; ... } Result 3: http://192.168.1.10/linux/a.html Example 4: location /aming/ { proxy_pass http://192.168.1.10/linux; ... } Result 4: http://192.168.1.10/linuxa.html Summarize: For ease of memory and standardized configuration, it is recommended that all URLs after proxy_pass end with "/". proxy_pass http://192.168.1.10/linux/; This is the end of this article about the implementation of proxy_pass in nginx reverse proxy. For more relevant nginx reverse proxy proxy_pass content, 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:
|
<<: Vue implements a simple shopping cart example
>>: Summary of HTML formatting standards for web-based email content
Table of contents 1. Several syntaxes of Insert 1...
Problem description: For example, the content of ...
1. Press win + R and type cmd to enter the DOS wi...
When using XAML layout, sometimes in order to make...
mysql installer community 8.0.16.0 installation g...
Vue data two-way binding principle, but this meth...
As shown below: from table where condition group ...
Three tables are connected. Field a of table A co...
MySQL Introduction to MySQL MySQL was originally ...
DetachKeyPair Unbind SSH key pairs from one or mo...
glibc is the libc library released by gnu, that i...
When building a B/S system interface, you often en...
CSS Operations CSS $("").css(name|pro|[...
In the previous article, I introduced how to solv...
1. OpenSSL official website Official download add...