Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-cloud-netflix
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
spring-cloud-netflix
Commits
9699664e
Commit
9699664e
authored
Apr 13, 2015
by
Spencer Gibb
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #294 from joshiste/master
Docs: Example of static, loadbalanced Zuul configuration
parents
3279ae60
6a0737da
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
spring-cloud-netflix.adoc
docs/src/main/asciidoc/spring-cloud-netflix.adoc
+17
-0
No files found.
docs/src/main/asciidoc/spring-cloud-netflix.adoc
View file @
9699664e
...
@@ -837,6 +837,23 @@ The location of the backend can be specified as either a "serviceId"
...
@@ -837,6 +837,23 @@ The location of the backend can be specified as either a "serviceId"
url: http://example.com/users_service
url: http://example.com/users_service
----
----
These simple url-routes doesn't get executed as HystrixCommand nor can you loadbalance multiple url with Ribbon.
To achieve this specify a service-route and configure a Ribbon client for the serviceId, e.g.
.application.yml
[source,yaml]
----
zuul:
routes:
users:
path: /myusers/**
serviceId: users
users:
ribbon:
listOfServers: example.com,google.com
----
To add a prefix to all mappings, set `zuul.prefix` to a value, such as
To add a prefix to all mappings, set `zuul.prefix` to a value, such as
`/api`. The proxy prefix is stripped from the request before the
`/api`. The proxy prefix is stripped from the request before the
request is forwarded by default (switch this behaviour off with
request is forwarded by default (switch this behaviour off with
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment