I am trying to configure squid to run behind NGINX. This is the pattern I wish to configure:
1) All request are received by NGINX
2) Based on the requested hostname, nginx should route the request to Apache or Squid
If the hostname is <name1>.domain.com it should route to squid
If the hostname is <name2>.domain.com it should route to apache
I tried configuring this, and the second scenario is working, that is request are being forwarded to apache. But the first scenario is not working, that is request are not properly routing to squid. It just shows the default error page (the one that is shown if you directly access squid via http on the browser), instead of serving the requested page.