Setup is Linux & SBCL.
Hunchentoot installed and runs with NginX in front of it.
I can run and access the Hunchentoot test site.
Now I'm trying to create pages. Complex ones did not work, so I'm down to the simplest page I can find as an example:
Code: Select all
(ql:quickload "hunchentoot")
(use-package :hunchentoot)
(start (make-instance 'acceptor :port 8080))
(define-easy-handler (greet :uri "/hello") (name)
(format nil "<html><body><h1>Hello ~a!</h1></body></html>" name))
With Hunchentoot off, I can:
Code: Select all
(load "/home/cos/page.lisp")
When I point my browser to 127.0.0.1:8080/hello, I get "Resource /hello not found." with the cute lizard, so I know my error page is being served up by Hunchentoot. But where's my "Hello!" page?
OK, what super-basic thing am I missing here?
Many thanks,
COS