Skip to content

[Question] Configure YARP to run multiple web servers under one IP address #981

Answered by Tratcher
ibrahim-cmsb asked this question in Q&A
Discussion options

You must be logged in to vote

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:

"ReverseProxy": {
   "Routes": {
     "settingsroute" : {
       "ClusterId": "settingscluster",
       "Match": {
         "Path": "/settings/{**catch-all}"
       },
     }
   },
   "Clusters": {
     "settingscluster": {
       "Destinations": {
         "settingsdestination1": {
           "Address": "http://192.168.0.10:5004"
         }
       }
     }
   }
 }

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ibrahim-cmsb
Comment options

@Tratcher
Comment options

Tratcher May 6, 2021
Collaborator

@ibrahim-cmsb
Comment options

Answer selected by ibrahim-cmsb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants