There should be a configurable in records.config named 
proxy.config.http.push_method_enabled which you need to change from 0 to 1. 
Then I believe that the default in records.config is that the localhost can 
send requests to TS with alternative methods such as PURGE or PUSH. So if you 
don't need to PUSH content using another ip, on the same server running TS, try 
this:

(pushing http://www.example.com/some_page in the cache)

curl -v -X PUSH -H "Host:www.example.com" http://localhost/some_page

200 OK response if the page was succesfully pushed into cache.

________________________________
Van: Rashid Zamani [[email protected]]
Verzonden: zondag 27 januari 2013 9:20
Aan: [email protected]
Onderwerp: push content


I am trying to use push cache 
option<http://trafficserver.apache.org/docs/trunk/admin/http-proxy-caching/index.en.html#PushingContentintoCache>
 of Apache Traffic Server(ATS), to push some content into my cache. I read the 
documentation, and tried to follow it but I have following questions/problems 
using this option:

1 - In the documentation it mentiones in order to enable PUSH request, modify 
proxy.config.http.quick_filter.mask in records.config. Yet I could not find 
such a super mask to modify in that file. Running grep -r 
proxy.config.http.quick_filter.mask . in ATS configuration folder shows me that 
this super mask exists in ip_allow.config file. Are they the same? Should I 
modify it there or should I add it to records.config? Unfortunately I cannot 
check this due to my issue No.2.

2 - I am not sure how to send this HTTP PUSH request and to whom (on which port 
- the same port ATS is running on?). There is 
perl-script<https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;a=blob;f=tools/push.pl>
 which suppose to automate the process, although I was not able to run the 
script yet(don't know any perl but working on it - getting Can't locate 
File/MimeInfo/Magic.pm in @INC). I wanted to print out the port from the script 
to see how to push into the cache.

Any hints/tips would be appreciated.

--
Rashid Zamani

Reply via email to