Skip to content

Custom location or Advanded configuration #2967

@jdgabriel

Description

@jdgabriel

Hi, devs!

I'm trying to make a setting to omit part of the url to the client.

https://company_name.my-domain.com/bucket/company_name/file.doc
change for:
https://company_name.my-domain.com/file.doc

image

I tried to do it by proxy_pass in the location with regex

image

location ~ ^/([^/]+)/(.*) {
    set $prefix "bucket";
    proxy_pass $prefix$2;
    proxy_set_header Host $host;
}

How do I get this kind of configuration in nginx proxy manager?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions