@pitaj it is not just me, beeing happy !!! my whole community loves it. Thanks to you .. which made me reading all the docs again and found this miss configuration
Making a subdomain with NGINX?
-
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 bebugs.mysite.com
.