Subj : Nginx as proxy? To : All From : Tmccaf Date : Fri Feb 06 2026 01:02 pm I am trying to figure out how to use Nginx as proxy. I tried the following and get 502 Bad Gateway. I changed Http port of SBBS to 8088. server { server_name galaxybbs.net www.galaxybbs.net; listen 11235 ssl; location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_set_header X-Forwarded-Proto $scheme; proxy_pass http://myprivateipofmachine:1213; } location ^~ /webbbs { try_files $uri @app; } location @app { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass http://http://myprivateipofmachine:8088; proxy_redirect off; rewrite /webbbs(.*) /$1 break; } # api call seems to be absolute, so you must alias /api/ url's location /api/ { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header Host $host; proxy_pass http://http://myprivateipofmachine/api/; .