Francis Daly
September 15, 2021 07:20PM
On Wed, Sep 15, 2021 at 05:36:54PM -0400, Robert Sawyer wrote:

Hi there,

> if someone tries to simply access the external IP present an error or
> if there is a known page that exists on the proxy server ( I have a
> php page with a known name that displays phpinfo for validating server
> info) display it, do not proxy. curently if I simply use the IP it
> displays the server for wordpress2. ( the actual names for the sites
> wordpress2 is alphebetically first ) so basically how do I make the
> webpages on the proxy server the “fallback” web server ?

You want one more server{} block, which includes "listen 80

Then any request to that port that does not match one of the other
server_name values will be handled in that server{}.

Right now, you do not have an explicit default_server declared for this
"listen" address, so you are using the implicit one, which in this case
is wordpress2.

Good luck with it,

Francis Daly
nginx mailing list
Subject Author Posted

Reverse proxy help.

Robert Sawyer September 15, 2021 05:38PM

Re: Reverse proxy help.

Francis Daly September 15, 2021 07:20PM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

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