0

I have an app server, which uses an apache server as a forward proxy to access the Internet. The forward proxy config on the apache server looks like:

<VirtualHost 10.10.10.1:8080>
  ProxyRequests On
  SSLProxyEngine On

  ProxyPass        / https://internet.com/api
  ProxyPassReverse / https://internet.com/api

  <Location />
      ....
  </Location>
</VirtualHost>

The config works perfectly until we have some dynamic endpoints, which means we don't know the forward url until the request coming in. The forward url will be set in the incoming http request's header.

I am wondering is it possible to get the dynamic endpoints from the header and forward it to the endpoints using apache?

Thanks in advance!

0 Answers0