[prev in list] [next in list] [prev in thread] [next in thread]
List: nginx
Subject: Re: Reverse proxy help.
From: Francis Daly <francis () daoine ! org>
Date: 2021-09-15 23:18:10
Message-ID: 20210915231810.GM18734 () daoine ! org
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic