Welcome! Log In Create A New Profile

Advanced

Re: The nginx upstream configuration do not distinguish domain

Maxim Dounin
August 10, 2020 08:14AM
Hello!

On Mon, Aug 10, 2020 at 04:19:52AM -0400, mark_liao wrote:

> Hi, Dear friends:
>
> I post my problem detail in there:
>
>
> https://stackoverflow.com/questions/63239923/the-nginx-upstream-configuration-do-not-distinguish-domain
>
> why can not differentiate the two upstreams?
> Please take a look at this.

In your nginx configuration, there is no difference for the two
server blocks configured except the uptream servers they proxy
all requests to.

On the other hand, you claim that you've started two upstream
servers:

"then I started the localhost:3003 and localhost:3002, each prefer
to /www/wwwroot/www.demo1.com and /www/wwwroot/www.demo1.com."

Given the "prefer to" paths (whatever it means), both upstream
servers seems to use the same configuration and expected to return
identical responses.

--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

The nginx upstream configuration do not distinguish domain

mark_liao August 10, 2020 04:19AM

Re: The nginx upstream configuration do not distinguish domain

Maxim Dounin August 10, 2020 08:14AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 44
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