我已经用 ssl 建立了一个 hunchentoot 服务器。我希望将常规的 http 请求重定向到 https。
似乎是和的某种hunchentoot:define-easy-handler
组合hunchentoot:redirect
要走的路,但我无法弄清楚。
这是我到目前为止所拥有的:
(defvar *https-handler*
(make-instance 'hunchentoot:easy-ssl-acceptor
:name 'ssl
:ssl-privatekey-file #P"/path/to/privkey.pem"
:ssl-certificate-file #P"/path/to/cert.pem"
:port 443))
(hunchentoot:start *https-handler*)