<div dir="ltr">Hello All,<br><br>I have erlang web application with cowboy web server and i launched it behind nginx reverse proxy. <br><br>My nginx configuration:<br><br>server {<br> listen 9090;<br><br> location /test {<br>
proxy_pass <a href="http://localhost:8080">http://localhost:8080</a>;<br> proxy_http_version 1.1;<br> }<br>}<br><br>Where <a href="http://localhost:8080">http://localhost:8080</a> is my cowboy web server. When i'm openning: <a href="http://localhost:8080/test">http://localhost:8080/test</a> i see my html page, it's ok, <br>
<br>Browser shows response headers:<br><br> Transfer-Encoding:chunked<br><br> Server:nginx/1.2.6 (Ubuntu)<br><br> Content-Type:text/html<br><br> Content-Encoding:gzip<br><br> Connection:keep-alive<br><br>It's normal, but... I see the following string right on the my html page:<br>
<br>"HTTP/1.1 204 No Content connection: close server: Cowboy content-length: 0"<br><br>Why nginx adds this string with headers to the html page? And it occurs only if i set up Content-Type: text/html header.<br>
<br>Thank you.<br clear="all"><br>-- <br><div>best regards,<br></div><div><br></div><div>twitter: <a href="https://twitter.com/0xAX" target="_blank">@0xAX</a></div><div>github: <a href="https://github.com/" target="_blank">0xAX</a></div>
</div>