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

Ability to use the hostname in the rule. #69

Open
moltar opened this issue Sep 15, 2022 · 2 comments
Open

Ability to use the hostname in the rule. #69

moltar opened this issue Sep 15, 2022 · 2 comments

Comments

@moltar
Copy link

moltar commented Sep 15, 2022

I want to rewrite foo.example.com/bar to produce a request to s3 /foo/bar. Essentially prefixing the origin request with the sub-doman. Currently, there is no way to do this with the rule, it seems, as it only takes the path into account.

Thanks!

@misterjoshua
Copy link
Member

Makes sense. Any idea what kind of API you'd like to see for this?

@moltar
Copy link
Author

moltar commented Sep 16, 2022

Tbh, not really sure 😁

The rules need to serialize, right? No functions?

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

2 participants