-
Notifications
You must be signed in to change notification settings - Fork 321
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
How to route unknown paths? #783
Comments
Is tide the right tool for a reverse proxy, vs using async-h1 directly? |
@jbr It will be a naive simple example just to show how a tide-based server (instance) can handle reverse proxy. |
I'm also trying to create a simple tide+surf based reverse-proxy. I experienced the same behaviour and while hoping for the same expected behaviour... The work-around I used was: That combination should route all your unknown paths. |
Out of curiosity to understand this use case, do you have other routes in addition to these? If not, using tide will be slower than using async-h1 directly as a reverse proxy. If there is no reason to use tide itself, we probably shouldn't include an example that doesn't use the router or other tide-specific features |
This is useful for custom 404's. We should support this. |
Thanks for the guidance! |
The reverse proxy example would be a great addition! |
@spikecodes Which, a reverse proxy or |
My bad, I meant the reverse proxy example. I now see though that it's a separate PR: #784 |
This likely needs to be fixed in |
Is there a preferred method for showing a 404 page when a route isn't found with Tide today? |
Hi.
I'm trying to write a reverse proxy example (#784), but I don't know how to route all possible paths. Consider the following example:
now, take a look this tests below:
Well, since wildcard allows anything, it should return
and
ok
in/
too. 😕Thank you!
The text was updated successfully, but these errors were encountered: