Hi Leif,

Wired

   1. I removed trailing slashes (I should not be the reason since it worked
   for me on an incubator version)
   2. I compiled the 2.1.7 to verify, and I got the same behavior
   3. Please find the results attached:

10x
Moshe

+++++++++ Incoming Request +++++++++
-- State Machine Id: 18
GET http://www.google.com/ HTTP/1.1
Host: ec2-50-17-143-39.compute-1.amazonaws.com
Connection: keep-alive
Cache-Control: max-age=0
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US)
AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16
Accept:
application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: adinfo=65

+++++++++ Proxy's Request +++++++++
-- State Machine Id: 18
GET / HTTP/1.1
Host: ec2-50-17-143-39.compute-1.amazonaws.com
Cache-Control: max-age=0
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US)
AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.204 Safari/534.16
Accept:
application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: adinfo=65
Client-ip: 79.182.201.113
X-Forwarded-For: 79.182.201.113
Via: http/1.1 domU-12-31-39-16-D1-1D[0A60D2EB]
(ApacheTrafficServer/2.1.7-unstable [uScMs f p eN:t cCMi p s ])

+++++++++ Incoming O.S. Response +++++++++
-- State Machine Id: 18
*HTTP/1.1 302 Found*
Location: http://www.google.com/
Cache-Control: private
Content-Type: text/html; charset=UTF-8
X-Content-Type-Options: nosniff
Date: Tue, 29 Mar 2011 15:17:14 GMT
Server: sffe
Content-Length: 219
X-XSS-Protection: 1; mode=block

[Mar 29 15:17:14.857] Server {3079075648} DEBUG: (http_hdrs)
[initialize_state_variables_from_response]Server is keep-alive.
+++++++++ Base Header for Building Response +++++++++
-- State Machine Id: 18
HTTP/1.1 302 Found
Location: http://www.google.com/
Cache-Control: private
Content-Type: text/html; charset=UTF-8
X-Content-Type-Options: nosniff
Date: Tue, 29 Mar 2011 15:17:14 GMT
Server: sffe
Content-Length: 219
X-XSS-Protection: 1; mode=block

+++++++++ Proxy's Response 2 +++++++++
-- State Machine Id: 18
HTTP/1.1 302 Found
Location: http://ec2-50-17-143-39.compute-1.amazonaws.com/
Cache-Control: private
Content-Type: text/html; charset=UTF-8
X-Content-Type-Options: nosniff
Date: Tue, 29 Mar 2011 15:17:14 GMT
Server: ATS/2.1.7-unstable
Content-Length: 219
X-XSS-Protection: 1; mode=block
Age: 0
Connection: keep-alive


On Tue, Mar 29, 2011 at 4:39 PM, Leif Hedstrom <zw...@apache.org> wrote:

> On 03/29/2011 08:31 AM, Moshe Kaplan wrote:
>
>> Hi Leif,
>>
>> 10x for the quick answer
>>
>> The remap.config is pretty simple (no plugins yet, just compiled the
>> code):
>> map http://ec2-50-17-143-39.compute-1.amazonaws.com/
>> http://www.google.com/
>> reverse_map http://www.google.com/
>> http://ec2-50-17-143-39.compute-1.amazonaws.com/
>>
>
> Hmmm, I tried this, and I don't see your behaviour at all.
>
> What does Google return to you ? You could try not to anchor the mapping
> rules (remove the trailing slashes),  it seems to me that perhaps google is
> sending you a redirect response, that you then convert to your host again
> (that's what the reverse_map rule does).
>
> You'll have to take a look to see exactly what ATS sends to google, and
> what google sends back to you, and then what ATS sends back to the UA. You
> can try that, by running e.g.
>
>    % sudo traffic_server -T http_hdrs
>
> -- Leif
>

Reply via email to