Skip to content

Commit

Permalink
docs: route matching details (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattklein123 committed Aug 16, 2016
1 parent 841475e commit daf57a8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,4 @@ response_headers_to_remove
vhost
route
vcluster
route_matching
12 changes: 12 additions & 0 deletions docs/configuration/http_conn_man/route_config/route_matching.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Route matching
==============

When Envoy matches a route, it uses the following procedure:

#. The HTTP request's *host* or *:authority* header is matched to a :ref:`virtual host
<config_http_conn_man_route_table_vhost>`.
#. Each :ref:`route entry <config_http_conn_man_route_table_route>` in the virtual host is checked,
*in order*. If there is a match, the route is used and no further route checks are made.
#. Independently, each :ref:`virtual cluster <config_http_conn_man_route_table_vcluster>` in the
virtual host is checked, *in order*. If there is a match, the virtual cluster is used and no
further virtual cluster checks are made.

0 comments on commit daf57a8

Please sign in to comment.