Welcome! Log In Create A New Profile

Advanced

Re: Reverse proxy help.

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 ?

http://nginx.org/en/docs/http/request_processing.html

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

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,

f
--
Francis Daly francis@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
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: 322
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