January 13, 2019 10:18PM
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 got a Http 404 error.

If URL rewrite can help in this scenario, is there anything wrong with my rewrite rule?
Subject Author Posted

Use sub-url to identify the different server

nevereturn01 January 10, 2019 02:54AM

Re: Use sub-url to identify the different server

Francis Daly January 10, 2019 06:50PM

Re: Use sub-url to identify the different server

nevereturn01 January 13, 2019 10:18PM

Re: Use sub-url to identify the different server

Francis Daly January 14, 2019 09:08AM

Re: Use sub-url to identify the different server

nevereturn01 January 20, 2019 10:13PM

Re: Use sub-url to identify the different server

Francis Daly January 24, 2019 04:00AM

Re: Use sub-url to identify the different server

nevereturn01 February 10, 2019 10:21PM

Re: Use sub-url to identify the different server

Francis Daly February 11, 2019 05:38PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 76
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready