Welcome! Log In Create A New Profile

Advanced

Re: nginx not forwarding requests to backend servers.

Francis Daly
July 27, 2016 10:50AM
On Wed, Jul 27, 2016 at 07:33:31AM -0500, Brian Pugh wrote:

Hi there,

> I am using nginx as a load balancer. However when I type in the URL for my
> site, which resolves to the IP of the load balancer, I get the default
> nginx page saying "nginx has been setup more configuration is required". I
> would expect nginx to forward my request through to the backend servers I
> have defined.

What request do you make of nginx?

Which of your defined location{} blocks does it match:

location / {
location = /50x.html {
location ~ \.php$ {

> And oddly enough, there is very little in the way of logging
> going on, to tell me why its failing.

You wrote that it is returning some content, presumably with a http
200. That suggests that it is not failing to do what you told it to do.

It cannot guess what you want it to do.

> Can anyone help my get requests to go to the backend servers? Is there

Try a request that ends with ".php" ?

Use "curl -v" and copy-paste the output, if it is not what you expect.

> any other config or depenency apps needed that I may not have installed or
> running? Also is there a way to enable more advanced debug logging to give
> me a better idea whats going on?

There is the "debug log", which is "extra stuff written to the error log":

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

Cheers,

f
--
Francis Daly francis@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

nginx not forwarding requests to backend servers.

Brian Pugh July 27, 2016 08:34AM

Re: nginx not forwarding requests to backend servers.

Francis Daly July 27, 2016 10:50AM

Re: nginx not forwarding requests to backend servers.

Brian Pugh July 27, 2016 11:26AM

Re: nginx not forwarding requests to backend servers.

Reinis Rozitis July 27, 2016 11:44AM

Re: nginx not forwarding requests to backend servers.

Brian Pugh July 27, 2016 12:10PM

Re: nginx not forwarding requests to backend servers.

crasyangel July 27, 2016 12:17PM

Re: nginx not forwarding requests to backend servers.

Reinis Rozitis July 27, 2016 12:20PM

Re: nginx not forwarding requests to backend servers.

Brian Pugh July 27, 2016 01:08PM

Re: nginx not forwarding requests to backend servers.

Brian Pugh July 27, 2016 01:18PM

Re: nginx not forwarding requests to backend servers.

Brian Pugh July 27, 2016 03:04PM

Re: nginx not forwarding requests to backend servers.

Reinis Rozitis July 27, 2016 03:18PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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