Example here https://github.com/certbot/certbot/issues/5817
Got the same error, never got it before, using similar basic setups. Seems very common - Does anyone have any insight in how to get around or what to check?
I'm running NodeBB on a windows server with NGINX. I'd like a add bug tracker software with the subdomain bugs.mysite.com. My question is, can I have two "server" blocks in the NGINX file or is there another way of doing it. I looked around and couldn't find anything.
Yes that's precisely the way of doing it.
I'm getting a 502 Bad Gateway error when I try to connect.
This is my second "server" configuration:
server {
listen 8080;
server_name 95.172.92.232;
location / {
proxy_pass http://95.172.92.232:8080;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
}
root C:\nodebb\nodebb\bugs;
}
Your server_name
should be bugs.mysite.com
.