On 24-2-2011 8:03, Leif Hedstrom wrote:
On 02/23/2011 10:12 AM, Jorn Argelo wrote:
Yes I sorta thought I was a bit vague on this one, but let me describe a more practical scenario:

We have a typical setup, where www.example.com is used both internally and externally, and both internal and external are using the same squid installation to access the website. I guess this is a typical standard setup really, but just to make sure it's clear:

(internet/internal) ->  squid -> apache

Apache is responding on www.example.com, but DNS-wise www.example.com is pointing to squid internally and externally.

So my question is: How would I achieve the same in ATS? Setting the pristine host header config is clear, but it is not clear to me how I achieve a similar setup in the remap.config:

map http://www.example.com http://???????

Is Apache HTTPD running on the same host as Squid but on a different port? Then the map rule would be e.g.

    map http://www.example.com http://localhost:8888


Somehow, you need to tell which host:port it should connect to, to be able to reach the Apache HTTPD server. If port is not specified, it defaults to :80 (for http). Makes sense?

-- Leif

Ah right, I forgot to say that one :)

They will be dedicated servers for ATS, so there will be no local apache running at all. I will have to specify a remote server at all times (which uses the same host header as explained above).

Thanks for the help so far Leif.

Jorn

Reply via email to