Hello,

I'm having a problem with headers when using nginx's proxy_pass with awful,
and I'm not sure if it's a question of nginx or Chicken, or just my
misunderstanding of headers...

Everything works fine except when I use (send-static-file) as in:

(define-page (regexp "/file/.+")
  (lambda (url)
      (parameterize ((root-path (data-dir)))
          (send-static-file (string-drop url 6)))))

In this case, Firefox shows me a set of Spiffy headers at the end of the
response body, even though they should be replaced by nginx's headers,
which seem to be fine:

<html>
  ...
</html>
HTTP/1.1 200 OK
Content-Type: text/html
Server: Spiffy/5.3 (Running on Chicken 4.8.0.6)
Content-Length: 6
Date: Tue, 24 Mar 2015 16:01:46 GMT

483702

Curl, however, only sees the nginx headers, with nothing extra at the end:

HTTP/1.1 200 OK
Server: nginx/1.4.6 (Ubuntu)
Date: Tue, 24 Mar 2015 16:24:42 GMT
Content-Type: text/html
Content-Length: 483704
Connection: keep-alive
Last-Modified: Tue, 24 Mar 2015 16:23:40 GMT
Etag: "483704-1427214220.0"

<html>
  ...
</html>

My nginx config is just:

    server {
          listen        7000;
          location / {
                   proxy_pass http://localhost:8080;

          }
        }

Many thanks for any ideas.

Nathaniel
_______________________________________________
Chicken-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to