Skip to content

Matching multiple paths and identifying sub domains #673

Answered by Tratcher
bmatatuk asked this question in General
Discussion options

You must be logged in to vote

Worst case you can define multiple routes pointing to the same destination. However, you should be able to reduce the redundancy using wildcards in both the host and path. E.g.:

http://.domain.com/ -> http://www.somedomain.com
http://
.domain.com/swagger/index.html -> http://www.somedomain.com

In this setup it looks like you'd be programmatically generating the routes? In that case a little redundancy doesn't seem like a big issue, and the route table should scale pretty well.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@thangchung
Comment options

@luizfbicalho
Comment options

@Tratcher
Comment options

Answer selected by bmatatuk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants