You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@trafficserver.apache.org by jacky <ja...@gmail.com> on 2011/03/11 12:06:23 UTC

push content into traffic server directly but get 404 error

hi, guys,
	I followed this manual "http://trafficserver.apache.org/docs/v2/admin/http.htm#PushingContentIntoCache" to push something into traffic server, but always got a 404 error as following:
--------------------------------------------------------------------
root@< test>:/etc/trafficserver # telnet 1.1.1.1 80
Trying 1.1.1.1...
Connected to 1.1.1.1.
Escape character is '^]'.
PUSH http://athena.test.com HTTP/1.1
Content-length: 84

HTTP/1.1 404 Not Found
Date: Fri, 11 Mar 2011 10:55:28 GMT
Connection: close
Via: http/1.1 athena.test.com ( [c s f ])
Cache-Control: no-store
Content-Type: text/html
Content-Language: en
Content-Length: 210

<HEAD><TITLE>Not Found</TITLE></HEAD>
<BODY BGCOLOR="white" FGCOLOR="black">
<FONT FACE="Helvetica,Arial"><B>
 Your requested URL was not found.</B></FONT>

<!-- default "Not Found" response (404) -->
</BODY>
Connection closed by foreign host.
--------------------------------------------------------------------

The version of traffic server is 2.1.4.
I already set "CONFIG proxy.config.http.push_method_enabled INT 1" in records.config
and set "
dest_domain=athena.test.com src_ip=* method=PUSH action=allow
dest_domain=. method=PUSH action=deny
" in filter.config.

any suggestion?




====================
Best regards!
====================
jacky wu
jacky.wucheng@gmail.com
blog:  http://www.sanote.org
====================


Re: push content into traffic server directly but get 404 error

Posted by Igor Galić <i....@brainsware.org>.

----- Original Message -----
> I think most users here does not use PUSH, and most devs here just

Uh... what is HTTP PUSH?

i

-- 
Igor Galić

Tel: +43 (0) 664 886 22 883
Mail: i.galic@brainsware.org
URL: http://brainsware.org/

Re: push content into traffic server directly but get 404 error

Posted by "ming.zym@gmail.com" <mi...@gmail.com>.
I think most users here does not use PUSH, and most devs here just want
to persuade you change PUSH to GET. Please consider to covert to a GET
request, as that is very easy and can even get you Content Verified
too. :D

do you have changed proxy.config.http.quick_filter.mask? that is super
mask I think, the default will deny PUSH.

I am not sure that PUSH is working in in all release, but the v2.1.6 and
trunk is working at least, see my testing.

here is my testing:

> zym6400 trafficserver # telnet localhost 80
> Trying 127.0.0.1...
> Connected to localhost.localdomain.
> Escape character is '^]'.
> PUSH http://cdn.zymlinux.net/trafficserver/2 HTTP/1.0
> Content-length: 217
> 
> HTTP/1.0 200 OK
> Content-type: text/plain
> Content-length: 1
> Date: Sun, 13 Mar 2011 02:20:26 GMT
> Last-Modified: Sun, 13 Mar 2011 02:20:26 GMT
> Cache-Control: max-age=3600
> Expires: Sun, 13 Mar 2011 03:20:26 GMT
> 
> 1
> HTTP/1.0 201 Created
> Date: Sun, 13 Mar 2011 03:10:01 GMT
> Via: http/1.1 zymtest1.corp.aliyk.com (ApacheTrafficServer/2.1.7-unstable [c s f ])
> Server: ATS/2.1.7-unstable
> Content-Length: 0
> 
> Connection closed by foreign host.
> zym6400 trafficserver # telnet localhost 80
> Trying 127.0.0.1...
> Connected to localhost.localdomain.
> Escape character is '^]'.
> GET http://cdn.zymlinux.net/trafficserver/2 HTTP/1.0
> 
> HTTP/1.0 200 OK
> Content-type: text/plain
> Content-length: 1
> Date: Sun, 13 Mar 2011 02:20:26 GMT
> Last-Modified: Sun, 13 Mar 2011 02:20:26 GMT
> Cache-Control: max-age=3600
> Expires: Sun, 13 Mar 2011 03:20:26 GMT
> Age: 3001
> Via: http/1.0 zymtest1.corp.aliyk.com (ApacheTrafficServer/2.1.7-unstable [cHs f ])
> Server: ATS/2.1.7-unstable
> 
> 1Connection closed by foreign host.


在 2011-03-11五的 19:06 +0800,jacky写道:
> hi, guys,
> I followed this manual
> "http://trafficserver.apache.org/docs/v2/admin/http.htm#PushingContentIntoCache" to push something into traffic server, but always got a 404 error as following:
> --------------------------------------------------------------------
> root@< test>:/etc/trafficserver # telnet 1.1.1.1 80
> Trying 1.1.1.1...
> Connected to 1.1.1.1.
> Escape character is '^]'.
> PUSH http://athena.test.com HTTP/1.1
> Content-length: 84
> 
> 
> HTTP/1.1 404 Not Found
> Date: Fri, 11 Mar 2011 10:55:28 GMT
> Connection: close
> Via: http/1.1 athena.test.com ( [c s f ])
> Cache-Control: no-store
> Content-Type: text/html
> Content-Language: en
> Content-Length: 210
> 
> 
> <HEAD><TITLE>Not Found</TITLE></HEAD>
> <BODY BGCOLOR="white" FGCOLOR="black">
> <FONT FACE="Helvetica,Arial"><B>
>  Your requested URL was not found.</B></FONT>
> 
> 
> <!-- default "Not Found" response (404) -->
> </BODY>
> Connection closed by foreign host.
> --------------------------------------------------------------------
> 
> 
> The version of traffic server is 2.1.4.
> I already set "CONFIG proxy.config.http.push_method_enabled INT 1" in
> records.config
> and set "
> dest_domain=athena.test.com src_ip=* method=PUSH action=allow
> dest_domain=. method=PUSH action=deny
> " in filter.config.
> 
> 
> any suggestion?
> 
> 
> 
> 
> 
> 
> 
> 
> ====================
> Best regards!
> ====================
> jacky wu
> jacky.wucheng@gmail.com
> blog:  http://www.sanote.org
> ====================
> 
>