Error 512 after nginx setup

Adrian Vidican a.vidican92 at
Sun Mar 15 18:58:38 UTC 2020

Hi Everyone,

First time I post here, hopefully I'm not gonna broke any rule.

I setup Nginx on my Ubuntu 16.04 server to point my domain (using cloudflare) to my server where <> is installed.

Here's the default file in sites-available

server {
    listen 80; listen [::]:80;

    return 301 https://$host$request_uri <https://$host$request_uri/>;

server {
    listen 443 ssl http2;

    ssl_certificate /etc/letsencrypt/live/ <>;
    ssl_certificate_key /etc/letsencrypt/live/ <>;
    include /etc/nginx/snippets/ssl.conf;

    location / {
        proxy_pass <>;
        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 <> <>;

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

Any idea what could be wrong?

Thanks in advance.
Adrian Vidican
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list