Ngnix reverse proxy for game server using sub-domain
retained text
Hi everyone, I struggle setting up nginx on my VPS and at this point I want to know if my desired solution is even possible. My setup: VPS running nginx directly and a minecraft-bedrock-server (port 19133 -> 19132) via docker. Using the nginx-stream-core-module. mydomain(.)org A-Record; to my VPS subdom1.mydomain(.)org; A-Record to my VPS The goal: \- nginx listening to port 19133 \- proxy all traffic from port 19133 to 19132 for subdom1.mydomain(.)org \- block all traffic on port 19133 for mydomain(.)org the problem: It is either proxy traffic from all domains or block traffic from all domains. I cant get nginx handle both domains different. Is my goal even possible to achieve?
document fetched 2026-09-29 00:30 · canonical https://reddit.com/r/selfhosted/comments/1ws5jzk/ngnix_reverse_proxy_for_game_server_using