欢迎大家赞助一杯啤酒🍺 我们准备了下酒菜:Formal mathematics/Isabelle/ML, Formal verification/Coq/ACL2, C++/F#/Lisp
Mod scgi
来自开放百科 - 灰狐
(版本间的差异)
(→Links) |
|||
(未显示1个用户的3个中间版本) | |||
第6行: | 第6行: | ||
==Install== | ==Install== | ||
+ | # apt-get install libapache2-mod-scgi // install | ||
+ | or | ||
wget http://quixote.python.ca/releases/scgi-1.12.tar.gz | wget http://quixote.python.ca/releases/scgi-1.12.tar.gz | ||
tar zxvf scgi-1.12.tar.gz | tar zxvf scgi-1.12.tar.gz | ||
cd scgi-1.12 | cd scgi-1.12 | ||
− | + | cd apache2 | |
+ | # apt-get install apache2-prefork-dev // 获得 /usr/bin/apxs2 | ||
+ | apxs2 -i -c mod_scgi.c | ||
+ | chmod 644 /usr/lib/apache2/modules/mod_scgi.so | ||
vi httpd.conf | vi httpd.conf | ||
− | LoadModule scgi_module /usr/lib/ | + | LoadModule scgi_module /usr/lib/apache2/modules/mod_scgi.so |
<Location "/"> | <Location "/"> | ||
SCGIServer 127.0.0.1 3001 | SCGIServer 127.0.0.1 3001 | ||
SCGIHandler On | SCGIHandler On | ||
</Location> | </Location> | ||
− | + | http://127.0.0.1:3001 | |
==Links== | ==Links== | ||
*Using Quixote with SCGI - http://docs.huihoo.com/homepage/dkuhlman/quixote_scgi.html | *Using Quixote with SCGI - http://docs.huihoo.com/homepage/dkuhlman/quixote_scgi.html | ||
+ | |||
+ | [[Category:CGI]] |
2010年8月22日 (日) 03:42的最后版本
The SCGI protocol is a replacement for the Common Gateway Interface (CGI) protocol. It is a standard for applications to interface with HTTP servers. It is similar to FastCGI but is designed to be easier to implement.
Lighttpd web server has built-in support for the SCGI protocol.
[编辑] Install
# apt-get install libapache2-mod-scgi // install or wget http://quixote.python.ca/releases/scgi-1.12.tar.gz tar zxvf scgi-1.12.tar.gz cd scgi-1.12 cd apache2 # apt-get install apache2-prefork-dev // 获得 /usr/bin/apxs2 apxs2 -i -c mod_scgi.c chmod 644 /usr/lib/apache2/modules/mod_scgi.so vi httpd.conf LoadModule scgi_module /usr/lib/apache2/modules/mod_scgi.so <Location "/"> SCGIServer 127.0.0.1 3001 SCGIHandler On </Location> http://127.0.0.1:3001
[编辑] Links
- Using Quixote with SCGI - http://docs.huihoo.com/homepage/dkuhlman/quixote_scgi.html
分享您的观点