[squid-users] redirect based on url (302)

uppsalanet fredrik at pipemore.se
Fri Sep 21 14:43:54 UTC 2018


Hi,
We use squid to limit web traffic to a few internal sites, the computers are
in in public areas. That works good. Now I have a new case:

If a user goes to page "https://browzine.com" and choose to view a magazine
they get redirected (302) to an other site. I would like to open for that
redirect if it's "https://browzine.com" (api.thirdiron.com) who does the
redirect.

Ex:
https://browzine.com -> http://api.thirdiron.com ->
/https://www.sciencedirect.com (this last redirect differ alot based on
magazine provider)/
Header:
*General*
  Request URL:
http://api.thirdiron.com/v2/libraries/223/articles/203497919/content
  Request Method: GET
  *Status Code: 302 Found*
  Remote Address: 54.221.220.6:80
  Referrer Policy: no-referrer-when-downgrade

* Response Header*
  Access-Control-Allow-Headers: Content-Type, Authorization
  Access-Control-Allow-Methods: DELETE,GET,PATCH,POST,PUT
  Access-Control-Allow-Origin: *
  Connection: keep-alive
  Date: Fri, 21 Sep 2018 13:36:18 GMT
  *Location:
https://www.sciencedirect.com/science/article/pii/S2212671612001655*
  Server: Cowboy
  Transfer-Encoding: chunked
  Via: 1.1 vegur
  X-Powered-By: Express

Brgd
Fredrik




--
Sent from: http://squid-web-proxy-cache.1019090.n4.nabble.com/Squid-Users-f1019091.html


More information about the squid-users mailing list