Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include new reverse_host feature in README #8

Open
aatauil opened this issue Apr 20, 2021 · 0 comments
Open

Include new reverse_host feature in README #8

aatauil opened this issue Apr 20, 2021 · 0 comments

Comments

@aatauil
Copy link

aatauil commented Apr 20, 2021

(opened this issue as a reminder not to forget to add this feature to the readme)

reverse_host is similar to host. https://github.com/mu-semtech/mu-dispatcher#matching-on-host
but is different as it will match the start of the url instead of the end. So very useful for matching subdomains for example

Example:
%{ reverse_host: ["harvesting" | _rest ], layer: :static }
will match any url starting with "harvesting"

Success:
"harvesting.redpencil.io"

fails:
"redpencil.harvesting.io"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant