How to Proxy Multiple Code-Servers via Nginx? #7036
Unanswered
yuzhuoheng
asked this question in
Q&A
Replies: 1 comment 3 replies
-
I think once you use a regex you have to tell NGINX what the full target is, but I am not sure. This seems to work for me:
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have multiple code-servers deployed in Docker containers. They are located at 127.0.0.1:13001, 127.0.0.1:13002, and so on. How can I achieve this through Nginx? For example, accessing /code/13001 should forward to 127.0.0.1:13001, and accessing /code/13002 should forward to 127.0.0.1:13002. It's important to note that the ports I mentioned (e.g., 13001) are not fixed.
I tried using the following configuration, but the browser cannot open the page normally.
Beta Was this translation helpful? Give feedback.
All reactions