You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to serve on a base path (an url prefix), code-server has an argument named --abs-proxy-base-path, but this argument is not configurable from the docker arguments.
Reason for change
This is useful for anyone who needs to serve a landing webpage at, say, example.com, and a vscode editor for the webpage at example.com/code.
It is also useful if you want to have different workspaces for different users on the same domain: example.com/user1/workspace with one container and example.com/user2/workspace with a second one.
Proposed code change
Add an if block for --abs-proxy-base-path here and passing the argument here
I applied the changes on a fork and re-built the image, but this argument is not serving on a subpath. I misunderstood it's meaning.
The way to serve on a subpath is to use a reverse-proxy with a configuration like this one. A developer says that all links are relative so it should work in this way.
Activity
github-actions commentedon Oct 26, 2025
Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.
PululuK commentedon Oct 31, 2025
+1
caph1993 commentedon Oct 31, 2025
I applied the changes on a fork and re-built the image, but this argument is not serving on a subpath. I misunderstood it's meaning.
The way to serve on a subpath is to use a reverse-proxy with a configuration like this one. A developer says that all links are relative so it should work in this way.
PululuK commentedon Oct 31, 2025
Hi @caph1993 , thanks for your feedback, In my case I'm finally using subdomains instead of path