I'm trying to create a setup where we can use Apigee as a forward proxy. According to the response to another question Apigee can act as a forward proxy. https://community.apigee.com/questions/13079/apigee-as-a-forward-proxy.html
However, when I configure my request to act as a proxy I get an error that Apigee is unable to identify proxy for host. The proxy has the base path '/' however the request never reaches the proxy and receives an error before.
└ ▶ curl -x apis.example.net:80 http://mocktarget.apigee.net/echo {"fault":{"faultstring":"Unable to identify proxy for host: mocktarget.apigee.net and url: \/echo","detail":{"errorcode":"messaging.adaptors.http.flow.ApplicationNotFound"}}}
I believe that this error is caused by that we have apis.example.net as vhost in Apigee but Apigee tries to find a vhost by mocktarget.apigee.net even though I have specified apis.example.net to be used a proxy.
By the nature of how forward proxies works, it would need to be able to handle all the different domains that exist out on the internet. And according to the answer in this post, I cannot use * as vhost.
https://community.apigee.com/questions/12065/is-it-possible-to-wildcard-alias-in-virtual-host-c.html