August 09, 2018 03:14PM
Thanks for the posts Kenny & pbooth.

I have this problem as well. I am running nginx 1.15 under MacOS and also experience this under Windows.

Requests successfully go to the server specified under the location but are not received at the proxy_pass defined in the mirror location's proxy_pass. Switching between the two servers (swapping the mirror for the proxy_pass in the primary location) exhibits the same problem.

My config is:
```
http {
server {
listen 3333;
server_name localhost;

location / {
mirror /other;
proxy_pass http://localhost:3001;
}

location = /other {
internal;
proxy_pass http://localhost:3002;
}
}
}

events {
}
```
Based on your other post, it does not look like I need a resolver.

I've also tried with two servers--one localhost and one established server on another machine.

Any help greatly appreciated!

Jeff
Subject Author Posted

Using the mirror module

Kenny Meyer March 13, 2018 04:40PM

Re: Using the mirror module

Roman Arutyunyan March 13, 2018 05:36PM

Re: Using the mirror module

Kenny Meyer March 13, 2018 06:06PM

Re: Using the mirror module

pbooth March 13, 2018 06:32PM

Re: Using the mirror module

Roman Arutyunyan March 13, 2018 06:38PM

Re: Using the mirror module

Kenny Meyer March 14, 2018 07:58AM

Re: Using the mirror module

Roman Arutyunyan March 14, 2018 08:34AM

Re: Using the mirror module

pbooth March 14, 2018 08:32AM

Re: Using the mirror module

jlangr August 09, 2018 03:14PM

Re: Using the mirror module

jlangr August 09, 2018 05:08PM

Re: Using the mirror module

Francis Daly August 09, 2018 06:30PM

Re: Using the mirror module

jlangr August 09, 2018 07:04PM

Re: Using the mirror module

jlangr August 09, 2018 07:05PM

Re: Using the mirror module

Francis Daly August 14, 2018 03:46AM

Re: Using the mirror module

jlangr August 14, 2018 10:02AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 107
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready