I have a Squid server hosted on DigitalOcean with a subdomain wildcard so every subdomain gets redirected to my server.
In my Squid config I have those 2 lines
cache_peer proxydomain.tld parent 20000 0 no-query no-digest never_direct allow all
to redirect all the traffic to another proxy server, which works perfectly.
Now I want to redirect different subdomains to different proxy domains, so if you would use first.mysquidserver.com it redirects you to proxydomain.tld, if you use second.mysquidserver.com it redirects you to anotherproxydomain.tld
I do not want to use different proxies depending on the site which got requested, I want to use different proxies depending on what subdomain gets used with my Squid server!
I didn't get any smarter with the documentation and Google. Not sure if this is possible with Squid? If not, would this work with something like NGINX? I know I could just redirect the subdomain to a different server, but that's not a good solution
Hopefully, it's clear what I want to say, thanks for your help.