Skip to content

[FEAT] Support for --abs-proxy-base-path #211

Closed

Description

@caph1993

Is this a new feature request?

  • I have searched the existing issues

Wanted change

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

Activity

  1. github-actions commented on Oct 26, 2025

    @github-actions

    Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

  2. PululuK commented on Oct 31, 2025

    @PululuK

    +1

  3. caph1993 commented on Oct 31, 2025

    @caph1993
    Author

    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.

  4. moved this from Issues to Done in Issue & PR Trackeron Oct 31, 2025
  5. PululuK commented on Oct 31, 2025

    @PululuK

    Hi @caph1993 , thanks for your feedback, In my case I'm finally using subdomains instead of path

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions