Error 512 after nginx setup
Adrian Vidican
a.vidican92 at gmail.com
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 discourse.org <http://discourse.org/> is installed.
Here's the default file in sites-available
server {
listen 80; listen [::]:80;
server_name stumblr.in;
return 301 https://$host$request_uri <https://$host$request_uri/>;
}
server {
listen 443 ssl http2;
server_name stumblr.in;
ssl_certificate /etc/letsencrypt/live/stumblr.in/fullchain.pem <http://stumblr.in/fullchain.pem>;
ssl_certificate_key /etc/letsencrypt/live/stumblr.in/privkey.pem <http://stumblr.in/privkey.pem>;
include /etc/nginx/snippets/ssl.conf;
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.
Any idea what could be wrong?
Thanks in advance.
Adrian Vidican
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20200315/2969539e/attachment-0001.htm>
More information about the nginx
mailing list