Francis Daly
March 20, 2020 05:40PM
On Sun, Mar 15, 2020 at 08:58:38PM +0200, Adrian Vidican wrote:

Hi there,

> I setup Nginx on my Ubuntu 16.04 server to point my domain (using cloudflare) to my server where discourse.org http://discourse.org/ is installed.

Is there any evidence (logs, tcpdump) that the request got to your nginx
in the first place?

If not -- you have something outside of nginx to adjust, so that the
request gets that far.

Otherwise...

> location / {
> proxy_pass http://stumblr.in:2045/ http://stumblr.in:2045/;
> proxy_set_header Host $http_host;
> proxy_http_version 1.1;
> proxy_set_header X-Forwarded-Proto $scheme;
> proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
> proxy_redirect http://stumblr.in:2045/ http://stumblr.in:2045/ https://stumblr.in https://stumblr.in/;
> }

> There's no error of Nginx but I've get 512 in browser.

Does your upstream port-2045 service return the 512 message?

(512 is not a standard http response code. So something must be creating
it specially.)

What response do you get if you use "curl -i" (or "curl -v") to make
the request? That is less likely to hide important information.

Cheers,

f
--
Francis Daly francis@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Error 512 after nginx setup

Adrian Vidican March 15, 2020 03:00PM

Re: Error 512 after nginx setup

Francis Daly March 20, 2020 05:40PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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