Basepath for a backend



  • Joe Garrison

    Hi Otto, I answered this question in the ticket you submitted, but wanted to respond here as well for other users to see.


    This can be accomplished with a URL rewrite. Here's a solution pattern that should get you started:

    If you need to change origins also, then you can add:

    set req.backend = your_origin

    after it sets the new req.url.

    Comment actions Permalink
  • sophiaabigail
    Hi,. is it possible to configure a base path for a given backend. Here's the use case: If a user requests:
    basePath is the URL prefix for all API paths, 192.168.l.254   We are trying to hit a SOAP service on a backend. We see the below error in Apigee : Properties error Request path cannot be empty type. relative to the host root. It must start with a leading slash / . If basePath is not specified, it defaults to / , that is, all paths start at the host root.
    Comment actions Permalink

Please sign in to leave a comment.