Re: Use sub-url to identify the different server

2019-02-10 Thread nevereturn01
Hi Francis, Thanks for your suggestions. The rule seems to work. Thanks very much! Posted at Nginx Forum: https://forum.nginx.org/read.php?2,282615,282975#msg-282975 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/ng

Re: Use sub-url to identify the different server

2019-01-20 Thread nevereturn01
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 di

Re: Use sub-url to identify the different server

2019-01-13 Thread nevereturn01
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

Use sub-url to identify the different server

2019-01-09 Thread nevereturn01
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.doma