- Lighttpd
- Andre Bogus
- 123字
- 2021-08-25 18:06:22
CGI with mod_cgi
To enable CGI in Lighttpd, we need to include and configure the module. For example, we might want to execute all files with the cgi
extension:
server.modules += ("mod_cgi") cgi.assign = (".cgi" => "")
The "" in cgi.assign
means that CGI scripts are started in their own shell. Otherwise, this entry would contain the path to the CGI interpreter/application.
We probably want to add index.cgi
to the list of index files:
server.indexfiles = ("index.cgi", "index.html")
Alternatively, we might prefer putting all CGI programs in one directory instead of distinguishing them by extension:
cgi.assign = ("/cgi-bin/" => "") # Patterns starting with "/" match the path.
If the CGI protocol is very simple, why should the configuration be any more complex?
推薦閱讀
- 自己動手寫分布式搜索引擎
- 邊做邊學(xué):Photoshop CS6 圖像制作案例教程
- 斯科特·凱爾比的零基礎(chǔ)攝影后期課 Lightroom數(shù)碼照片調(diào)修技法
- 中文版Premiere Pro CC實用教程
- AutoCAD 2014電氣設(shè)計從入門到精通
- SOLIDWORKS Visualize 實例詳解(微視頻版)
- Photoshop CC平面設(shè)計教程(微課版)
- SPSS統(tǒng)計分析
- Adobe創(chuàng)意大學(xué)Photoshop產(chǎn)品專家認(rèn)證標(biāo)準(zhǔn)教材(CS6修訂版)
- 修片有道:PHOTOSHOP攝影后期專業(yè)技法
- Excel革命!超級數(shù)據(jù)透視表Power Pivot與數(shù)據(jù)分析表達(dá)式DAX快速入門
- 3ds Max-Photoshop游戲模型制作全攻略
- Creo 5.0從入門到精通(第2版)
- Adobe創(chuàng)意大學(xué)視頻編輯師 After Effects CS5 + Premiere Pro CS5 標(biāo)準(zhǔn)實訓(xùn)教材
- UG NX 6.0入門與提高