Hi,
I'm planning to write an Nginx extension that sits in front of a pool of squid proxies:
Application -> Nginx -> Squid -> Target web site.
It would need to do the following:
1) Bind to a specific URL like <nginx_server>/proxy/
2) Inspect HTTP request header
3) Select squid proxy from a list
4) Forward on HTTP request to squid
5) Inspect the content and update the list accordingly
6) Rewrite the response header and flush out the content to the application.
I wanted some feedback on whether this is a feasible and if there any suggestions on how one would approach building this extension. If nginx is not well suited for this, are there alternatives that would work for this use case?
Thanks in advance :)