阿帕奇+ mod_lisp + CLISP [英] Apache + mod_lisp + clisp
问题描述
如何配置Apache + mod_lisp + CLISP并成立了一个Hello World!?我找不到任何关于这个问题完全HOWTO。谢谢你。
编辑:Vebjorn的解决方案工作,但我并不怎么code中的世界,你好!。谁能告诉我如何进行?还有像SWANKing的CLISP,然后用泥连接到它,但后来当我启动mod_lisp的演示,测试页面未送达和我的煤泥不返回?
再次感谢。
- 下载<一个href=\"http://www.fractalconcept.com:8000/public/open-source/mod_lisp/mod_lisp.c\">http://www.fractalconcept.com:8000/public/open-source/mod_lisp/mod_lisp.c
- 编译和安装Apache模块
须藤APXS -i -c mod_lisp.c
- 添加以下到你的
的httpd.conf
:
的LoadModule lisp_module的libexec / httpd的/ mod_lisp.so
AddModule开头mod_lisp.c
LispServer 127.0.0.1 3000富
&LT;位置/ foo的&GT;
SetHandler口齿不清处理程序
&LT; /地点&gt; - 重新启动Apache与
须藤apachectl中重启
- 下载例如Lisp的端在处理CLISP的:<一href=\"http://www.fractalconcept.com/fcweb/download/modlisp-clisp.lisp\">http://www.fractalconcept.com/fcweb/download/modlisp-clisp.lisp
-
开始CLISP和评估:
(载modlisp-CLISP)
(modlisp:modlisp服务器) -
在浏览器中的http://本地主机/ foo的。您应该看到:
mod_lisp 2.0
这是通过发送一个恒定的HTML字符串
mod_lisp 2.0 + CLISP + APACHE + Linux的
块引用>How to to configure apache + mod_lisp + clisp and set up a "Hello World!"? I couldn't find any complete howto on the subject. Thanks.
Edit: Vebjorn's solution works, but then I don't how to code the "hello world!". Can anyone tell me how to proceed? There's something like SWANKing the clisp, then connect to it with SLIME, but then when I launch mod_lisp's demo, the test page is not served and my slime doesn't return?
Thanks again.
解决方案
- Download http://www.fractalconcept.com:8000/public/open-source/mod_lisp/mod_lisp.c
- Compile and install Apache module with
sudo apxs -i -c mod_lisp.c
- Add the following to your
httpd.conf
:LoadModule lisp_module libexec/httpd/mod_lisp.so AddModule mod_lisp.c LispServer 127.0.0.1 3000 "foo" <Location /foo> SetHandler lisp-handler </Location>- Restart apache with
sudo apachectl restart
- Download example of Lisp-side handling in CLISP: http://www.fractalconcept.com/fcweb/download/modlisp-clisp.lisp
Start CLISP and evaluate:
(load "modlisp-clisp") (modlisp:modlisp-server)Point your browser to http://localhost/foo. You should see:
mod_lisp 2.0
This is a constant html string sent by mod_lisp 2.0 + CLISP + apache + Linux
这篇关于阿帕奇+ mod_lisp + CLISP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!