[Question] Configure YARP to run multiple web servers under one IP address #981
-
I was recommended to use YARP by a friend. Thanks to all contributors for their amazing work. I want to use YARP to combine multiple web servers to run as one site. At the moment, all the servers share the same IP address but different ports. For example, a sub-directory with the name
The redirection works but it fails to load resources except for the index route ( |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Yes, YARP should be able to help with that. "ReverseProxy": {
"Routes": {
"settingsroute" : {
"ClusterId": "settingscluster",
"Match": {
"Path": "/settings/{**catch-all}"
},
}
},
"Clusters": {
"settingscluster": {
"Destinations": {
"settingsdestination1": {
"Address": "http://192.168.0.10:5004"
}
}
}
}
} |
Beta Was this translation helpful? Give feedback.
Yes, YARP should be able to help with that.
Start with this guide: https://microsoft.github.io/reverse-proxy/articles/getting_started.html#configuration
Each IP would be its own cluster and destination, and each sub-directory would be a route. Something like this: