Thank you for the reply. If you mean http://trafficserver.apache.org/docs/trunk/admin/forward-proxy/index.en.html, I exactly followed that.
The issue is ATS is not following the redirects, instead sends back 302. * About to connect() to mynode port 8000 (#0) * Trying 10.254.32.51... connected * Connected to mynode (10.254.32.51) port 8000 (#0) > GET / HTTP/1.1 > User-Agent: curl/7.21.0 (x86_64-pc-linux-gnu) libcurl/7.21.0 OpenSSL/0.9.8o zlib/1.2.3.4 libidn/1.18 > Host: mynode:8000 > Accept: */* > < HTTP/1.1 301 Moved Permanently < location: https://npmjs.org/ < Date: Tue, 07 Aug 2012 19:53:49 GMT < Age: 115 < Content-Length: 65 < Connection: keep-alive < Server: ATS/3.2.0 < <html>Moved: <a href="https://npmjs.org/">https://npmjs.org/</a> * Connection #0 to host ql-node left intact * Closing connection #0 -- Prabhakhar K On Tue, Aug 7, 2012 at 12:55 PM, Igor Galić <i.ga...@brainsware.org> wrote: > > > ----- Original Message ----- > > Hi, > > > > I want to set up ATS as a forward proxy for npmjs.org. I add this > > http://trafficserver.apache.org/docs/trunk/admin/forward-proxy/ > > > line to > > the records.config > > > > map http://mynode:8000/ https://npmjs.org/ > > > > and added some storage in the storage.config. > > > > > > I started ATS. When I do "curl -v http://mynode:8000", I am getting a > > 302. > > > > > > < HTTP/1.1 301 Moved Permanently > > < location: https://npmjs.org/ > > < Date: Tue, 07 Aug 2012 18:15:22 GMT > > < Age: 70 > > < Content-Length: 65 > > < Connection: keep-alive > > < Server: ATS/3.2.0 > > < > > <html>Moved: <a href="https://npmjs.org/">https://npmjs.org/</a> > > > > > > I want ATS to follow the redirect and get me the actual content from > > npmjs.org. Can you please let me know, what I am missing. > > > > Note: > > If I enter http://mynode:8000/ in a brower, I getting the page I want > > as > > the browser is redirecting properly. > > > > Thank you in advance. > > > > -- > > Prabhakhar > > > > -- > Igor Galić > > Tel: +43 (0) 664 886 22 883 > Mail: i.ga...@brainsware.org > URL: http://brainsware.org/ > GPG: 6880 4155 74BD FD7C B515 2EA5 4B1D 9E08 A097 C9AE > >