Skip to content

support base serving path #462

@superwushu

Description

@superwushu

Search for duplicate feature request

  • I already searched, and this feature request or improvement is not a duplicate.

Feature scope

Improve existing functionality

Feature request related to a problem

We may want to serve the static files under a sub-path URL instead of the root URL. This may be helpful in cases only one host name is available but we need to serve multiple services.

Describe the solution you'd like

A new--base-path <base> option or env variable to map all requests for /<base>/... to files under <ROOT>/....

Describe alternatives you've considered

Currently I use the rewrite rule in Nginx to workaroud this, by removing /<path>/ before redirecting requests to SWS and by adding `//' for URLs in responses. This is ugly and error prone. It would be nice if SWS can natively support it.

Build target

All targets

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is neededv2v2 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions