Re: Use sub-url to identify the different server

2019-02-11 Thread Francis Daly
On Sun, Feb 10, 2019 at 10:21:22PM -0500, nevereturn01 wrote: Hi there, > Thanks for your suggestions. > The rule seems to work. Good to hear that it is working for you :-) Cheers, f -- Francis Dalyfran...@daoine.org ___ nginx

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

Re: Use sub-url to identify the different server

2019-01-24 Thread Francis Daly
On Sun, Jan 20, 2019 at 10:13:05PM -0500, nevereturn01 wrote: Hi there, > 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. So - you have internal serverA, which has its own content at

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

Re: Use sub-url to identify the different server

2019-01-14 Thread Francis Daly
On Sun, Jan 13, 2019 at 10:18:06PM -0500, nevereturn01 wrote: Hi there, > Since I'm not in the website develop team, I cannot let them change the url > structure:( That's a shame. Whether is easy (or even possible) to reverse-proxy the "site1" content at a different part of the url hierarchy

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;

Re: Use sub-url to identify the different server

2019-01-10 Thread Francis Daly
On Thu, Jan 10, 2019 at 02:54:14AM -0500, nevereturn01 wrote: Hi there, > 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/ >

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.