每日一句 ( 2024920 )  

Years may wrinkle the skin, but to give up enthusiasm wrinkles the soul.

歲月留痕,只及肌膚;激情不再,皺起心靈。———— Samuel Ullman

windows中配置apache以cgi方式運行python

首先自行安裝好apache(httpd)環(huán)境,確保apache在你系統(tǒng)中已經(jīng)能成功運行并被訪問。打開apache的配置文件conf/httpd.conf,找到ScriptAlias /cgi-bin/ "/Apache22/cgi-bin/"這是指定了當(dāng)訪問http://yourdomain/cgi-bin/時應(yīng)該映射到文件系統(tǒng)中的哪個目錄,我修改成了ScriptAlias /cgi-bin/ "d:/programs/Apache22/cgi-bin/"然后找到下面這段 AllowOverride None Options None...