<p dir="ltr">not sure about your original problem but `curl -X HEAD` isn't a proper http request:</p>
<p dir="ltr">```<br>
This option only changes the actual word used in the HTTP request, it does not alter the way curl behaves. So for example if you want to make a proper HEAD request, using -X HEAD will not suffice. You need to use the <a href="http://curl.haxx.se/docs/manpage.html#-I">-I, --head</a> option.<br>
```</p>
<div class="gmail_quote">On Dec 30, 2014 5:20 AM, "stwissel" <<a href="mailto:nginx-forum@nginx.us">nginx-forum@nginx.us</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm using nginx 1.7.7 as a reverse proxy in front of a Apache CouchDB.<br>
Access via browser to CouchDB data works like a charm. However I have<br>
trouble with replication (which runs via HTTPs). This is what I found out:<br>
<br>
CouchDB would issue a HTTP HEAD first and then perform GET/POST as per its<br>
algorythm. However the HEAD request times out. I then tried to replicate<br>
that behavior using CURL. This is what I found:<br>
<br>
curl -v --head <a href="http://myserver/couch" target="_blank">http://myserver/couch</a><br>
<br>
- works as expected<br>
<br>
curl -v -X HEAD <a href="http://myserver/couch" target="_blank">http://myserver/couch</a><br>
<br>
- times out. Now I suspect that CouchDB uses a call similar to the later and<br>
thus runs into the timeout.<br>
<br>
I verified: the timeout also happens when I do a -X HEAD to a base address<br>
(one that is not redirected to CouchDB), so I need to change something (can<br>
I?) on the nginx side.<br>
<br>
What are my options?<br>
<br>
Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?2,255845,255845#msg-255845" target="_blank">http://forum.nginx.org/read.php?2,255845,255845#msg-255845</a><br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div>