You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Bo Lorentsen <bl...@lue.dk> on 2010/09/21 17:52:24 UTC

[users@httpd] mod_proxy and Content-Range response

Hi ...

I hope this is the proper place to bring on subjects like this, I have 
tried to look many places but found nothing on this subject.

I have been creating a new data backend (RESTful JSON), that I think 
works quite nicely, and this backend implement the full rest protocol 
from HTTP 1.1 (RFC 2616), or at least as much as I understand of it :)

This all quite works well, but I like to put my backend server behind 
apache, to make it more simple to deploy in a real life setup (access 
control and https and more ...). To make this work, I am using ProxyPass 
and ProxyPassReverse from mod_proxy and mod_proxy_http.

This setup works find, until I start using the HTTP header "Range" 
(using items not bytes, as I have dojo JsonRestStore in my client code). 
When the client request for a range, it works, an the HTTP header 
contains this :

Range: items=0-24

My backend server replys to this (after building up a prober set of 
data), and the reply header contains this :

Content-Range: items 0-24/600

and the response code is 200 (I have tried 206 too, but this makes a 
"proxy error" in mod_proxy).

When this comes out of the proxy, it is still a Content-Range but the 
header entry have changed to this, instead :

Content-Range: items 0

Am I missing something in the configuration of my apache mod_proxy, or 
is this an error in mod_proxy ?

Hope someone can spread some light on this, please.

Regards

/BL

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] mod_proxy and Content-Range response

Posted by Bo Lorentsen <bl...@lue.dk>.
On 09/21/2010 05:52 PM, Bo Lorentsen wrote:
> I have been creating a new data backend (RESTful JSON), that I think 
> works quite nicely, and this backend implement the full rest protocol 
> from HTTP 1.1 (RFC 2616), or at least as much as I understand of it :)
This ended up being my own doing (I was inserting 0 values, unintented), 
and I am sorry if this have confused anyone else but me.

/BL

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org