You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@trafficserver.apache.org by Belkacem <re...@gmail.com> on 2011/04/21 18:16:58 UTC

Caching

Hi every one, I really need help here,
i'm testing file caching in traffiserver,
it's configured to remap files from localhost:80 to localhost:8080,
when i'm trying to purge a file with the following command :
curl -X PURGE -v -H "Host: http://localhost:8080" "http://localhost/test.txt"
I get this :
* About to connect() to 10.0.1.11 port 80 (#0)
*   Trying 10.0.1.11... connected
* Connected to 10.0.1.11 (10.0.1.11) port 80 (#0)
> PURGE /test.txt HTTP/1.1
> User-Agent: curl/7.19.7 (x86_64-pc-linux-gnu) libcurl/7.19.7 OpenSSL/0.9.8k zlib/1.2.3.3 libidn/1.15
> Accept: */*
> Host: http://10.0.1.11:8080
> 
< HTTP/1.1 403 Access Denied
< Date: Thu, 21 Apr 2011 16:14:35 GMT
< Connection: close
< Server: ATS/2.1.7-unstable
< Cache-Control: no-store
< Content-Type: text/html
< Content-Language: en
< Content-Length: 228
< 
<HEAD><TITLE>Access Denied</TITLE></HEAD>
<BODY BGCOLOR="white" FGCOLOR="black">
<FONT FACE="Helvetica,Arial"><B>
 You are not allowed to access the document.</B></FONT>

<!-- default "Access Denied" response (403) -->
</BODY>
* Closing connection #0

Any help please ?
bmr



Re: Caching key

Posted by "ming.zym@gmail.com" <mi...@gmail.com>.
TS store mapped URL(object) in disk storage.

all request from User is remapped first, so that PURGE request is
remapped too, you don't need to do remapping before send to TS.

在 2011-04-22五的 11:20 -0700,Walsh, Peter写道:
>  
> 
> Hello,
> 
> I am trying to determine what URI ATS uses as the key to cache the
> response data.  Is it the incoming URI or the remapped URI?
> 
> Meaning, if I map “exernal.com” to “mapped.com”, is the response
> cached with the remapped “mapped.com”?  I believe this to be the case
> but want to be sure.
> 
> Thanks in advance,
> 
> Pete
> 
> 



Caching key

Posted by "Walsh, Peter" <Pe...@disney.com>.
Hello,
I am trying to determine what URI ATS uses as the key to cache the response data.  Is it the incoming URI or the remapped URI?
Meaning, if I map "exernal.com" to "mapped.com", is the response cached with the remapped "mapped.com"?  I believe this to be the case but want to be sure.
Thanks in advance,
Pete

Re: Caching

Posted by Leif Hedstrom <zw...@apache.org>.
On 04/21/2011 10:16 AM, Belkacem wrote:
> Hi every one, I really need help here,
> i'm testing file caching in traffiserver,
> it's configured to remap files from localhost:80 to localhost:8080,
> when i'm trying to purge a file with the following command :
> *curl -X PURGE -v -H "Host: http://localhost:8080" 
> "http://localhost/test.txt"*
> I get this :
> * About to connect() to 10.0.1.11 port 80 (#0)
> *   Trying 10.0.1.11... connected
> * Connected to 10.0.1.11 (10.0.1.11) port 80 (#0)

Not sure why it's connecting to 10.0.1.11, but since you're not 
connecting on 127.0.01, I think the quick filter is blocking you. You 
can just disable the quick filter entirely to verify, just set it to 0 
in records.config (search for quick).

Also, I'm not sure that you are purging the correct element, why not 
just purge like

curl -X PURGE http://localhost/test.txt


The PURGE requests should get remapped too, I *think*. But give it a try.

-- Leif