最近接到一份工作,要和别人一起写一个web app。他们选择了使用Apache,所以我不得不使用它。但是我正在使用 restas 在 sbcl
中编写我的程序。所以我对如何在 Apache 后面运行我的应用程序感到困惑。我试过 mod_lisp
,但似乎没有用。我得到的只是一个显示 :Internal Server Error.
当我检查 apache 错误日志时,我发现:
[core:error] [pid 18294:tid 140614142228224] [client 127.0.0.1:44049] AH00135: Invalid method in request server-protocol
[:error] [pid 18295:tid 140614150620928] (70014)End of file found: error reading from Lisp
现在我更糊涂了....
最佳答案
最简单的方法是配置Apache to act as a reverse-proxy .就个人而言,我更喜欢nginx
,但任何适合您的东西。
我们的想法是,您将运行 SBCL 以监听某个本地端口,等待从 Apache 通过管道传入的请求。 Apache 将直接从客户端获取请求,并将其中一些请求传递给您的 Web 应用程序(大概,您希望外部服务器为您处理静态 Assets )。
关于apache - 如何使用 sbcl+restas+apache 运行网络应用程序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29348319/