小编ark*_*ark的帖子

使用 hunchentoot 重定向到 https

我已经用 ssl 设置了一个 hunchentoot 服务器。我希望将常规 http 请求重定向到 https。

似乎某种组合hunchentoot:define-easy-handlerhunchentoot: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*)
Run Code Online (Sandbox Code Playgroud)

common-lisp hunchentoot

5
推荐指数
1
解决办法
210
查看次数

标签 统计

common-lisp ×1

hunchentoot ×1