chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] headers with nginx + awful


From: Matt Gushee
Subject: Re: [Chicken-users] headers with nginx + awful
Date: Tue, 24 Mar 2015 15:39:35 -0600

Hi, Nathaniel--

I don't have any specific knowledge about Awful, but I thought I'd check into this, since I am also using Chicken for web development, and Nginx is my usual HTTP server.

On Tue, Mar 24, 2015 at 10:29 AM, Nathaniel Rudavsky-Brody <address@hidden> wrote:

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

 What happens if you add the NO-TEMPLATE parameter, e.g.

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

?

HTH.

PS: Why not just have Nginx serve static files?

--
Matt Gushee

reply via email to

[Prev in Thread] Current Thread [Next in Thread]