How to set up spiffy to directly execute cgi scripts. I.e. NOT by applying
the interperter to the script:
Spiffy seems to want this:
/bin/perl script.pl
vs
script.pl with #!/bin/perl in the first line.
;; the cgi-handler part is *not* obvious from the documentation
;; I recomend putting a line like the following in one of the examples
(use spiffy cgi-handler)
(spiffy-debug-mode #t)
(spiffy-file-ext-handlers
`(("cgi" . ,(cgi-handler* "/nfs/blah/stmlrun.cgi"))))
;; the "script" I want to run is actually a compiled binary
;; I couldn't figure out how to run it directly so I wrote a wrapper :-(
;; from looking at the code it isn't obvious to me if it is even possible
(spiffy-root-path "mcos")
(start-server location: (get-host-name)
init: noop)
-=-
_______________________________________________
Chicken-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/chicken-users