httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Banfield <rbanfi...@weogeo.com>
Subject [users@httpd] ProxyPassing an HTTP PUT request
Date Wed, 22 Apr 2009 18:29:37 GMT
Apache Version: 2.2.3 (rpm: httpd-2.2.3-11.el5_1.centos.3)

I am using Apache's proxypass to send requests to a different port on 
the same machine, but using a different webserver.  This works 
wonderfully for my GET requests, however for a PUT, the request is 
passed through the proxy and a 100-Continue is passed back through the 
proxy, but the subsequent data does not appear to be passed at all.  The 
different webserver times out after receiving 0 bytes of file data, and 
sends a 400 error, which the client receives (and is recorded in the 
error_log).  A request directly to http://blah.com:81/upload works 
correctly.  The proxypass directives are the only custom directives in 
the configuration directory (httpd.conf which came with Centos5 is not 
modified).

/etc/httpd/conf.d/proxy.conf:
ProxyPass /process  http://localhost:81/process
ProxyPass /upload   http://localhost:81/upload

 From curl:
* About to connect() to [redacted] port 80 (#0)
*   Trying 38.100.211.115... connected
* Connected to [redacted] (#0)
 > PUT [redacted] HTTP/1.1
 > User-Agent: curl/7.19.4 (x86_64-redhat-linux-gnu) libcurl/7.19.4 
NSS/3.12.2.0 zlib/1.2.3 libidn/0.6.14 libssh2/0.18
 > Host: [redacted]
 > Accept: */*
 > Content-Length: 3785
 > Expect: 100-continue
 >
< HTTP/1.1 100 Continue

[... 60 seconds later ...]

< HTTP/1.1 400 Bad Request
< Date: Wed, 22 Apr 2009 18:16:42 GMT
< Content-Type: text/plain; charset=UTF-8
< Content-Length: 27
< Vary: Accept-Encoding
< Connection: close
<
Could not complete upload
* Closing connection #0

---------------------------------------------------------------------
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


Mime
View raw message