Hi Francis, Thanks for your suggestions. The rule seems to work. Thanks very much!by nevereturn01 - Nginx Mailing List - English
Hi Francis, Thanks for your reply. Since I'm a newbie to Nginx, I'm sorry that I don't quitely understand the questions. Now, we are running a small business. So we don't have any load-balance or fail-over deployment. So far, we have only 1 Nginx + 1 serverA + 1 serverB. As for the rewrite, I did some research and found that it seems that only URL rewrite can help in my scenario. Technicby nevereturn01 - Nginx Mailing List - English
Hi Francis, Thanks for your reply. Since I'm not in the website develop team, I cannot let them change the url structure:( Now, I'm tring to use URL rewrite. I've tried the following: ============================== location /site1 { rewrite ^/site1/(.*) /$1 break; proxy_pass https://10.1.1.1; ============================== However, it didn't work and I gotby nevereturn01 - Nginx Mailing List - English
Hi experts, I have 2 internal web hosts & 1 dedicate Nginx as reverse proxy, eg 10.1.1.1 & 10.1.1.2 Now, I need to access the different hosts via sub-url. eg: 1. https://www.domain.com/site1 -----> https://10.1.1.1/ https://www.domain.com/site1/ui -----> https://10.1.1.1/ui/ 2. https://www.domain.com/site2 -----> https://10.1.1.2/ https://www.domain.com/site2/ui -----by nevereturn01 - Nginx Mailing List - English