2014-06-18

Environment: CentOS 6.5 x86_64
Server: Apache behind nginx
Database: MySQL
Client: Chrome / Firefox / Mac Client 1.6
OC-Version: 6.0.3
PHP-Version: 5.3.3

Hi, I am trying to deploy the owncloud, and came across an issue, the problem is about connecting to swift which is behind a nginx, tcpdump shows that the owncloud's swift module sends a POST request with two Content-Length parameters, which is not permitted by nginx(There is no vanish in this environment). Does anyone know about this issue ? Thanks.

The tcpdump captured text is like as follows:

PUT /v1/xxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxx/hello.txt HTTP/1.1
User-Agent: php-opencloud/1.5.10 (Rackspace)
Host: xxxxxx.com
Accept: */*
ETag: b1946ac92492d2347c6235b4d2611184
Content-Length: 6
X-Auth-Token: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
X-Auth-Project-Id: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Content-Length: 6
Expect: 100-continue

HTTP/1.1 400 Bad Request
Server: Tengine
Date: Tue, 17 Jun 2014 10:53:33 GMT
Content-Type: text/html
Content-Length: 265
Connection: close

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head><title>400 Bad Request</title></head>
<body bgcolor="white">
<h1>400 Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<hr/>Powered by Tengine</body>
</html>

Statistics: Posted by stringtang — Wed Jun 18, 2014 3:01 am

Show more