خرید بک لینک

I use Apache as reverse proxy to a downstream web server X that requires some headers such as Authorization (basic auth). I have an upstream system Y that needs to call X via my reverse proxy. The role of my reverse proxy is to populate the missing headers.

The challenge is that to populate these missing headers, the proxy needs to extract some other headers from Y's request, call an exteal system Z with the headers from Y, collect the answer from this call, and use it as basic auth credentials to call the downstream system X.

I was thinking of using mod_cgi to make the call to the exteal system Z. All examples I saw with mod_cgi print results that are retued to the web page.

Is there a way to use the cgi results inside http.conf?

Is there a simpler way to call curl or wget inside http.conf?

- - , .

برچسب: نویسنده: استخدام کار تاريخ: شنبه 1 اسفند 1394 ساعت: 18:01

صفحه بندی