通过.htaccess 配置cgi环境

2008年6月12日 由 飞扬轻狂 留言 »

1、配置 .htaccess
————————————
AddHandler cgi-script .cgi .pl #添加handler
Options +ExecCGI # 允许目录执行cgi
————————————
2、更改目录权限为apche apache可以执行目录下的文件
3、测试 test.cgi
——————–
#!/usr/bin/perl
print “Content-type: text/html\n\n”;
print “Hello, World.”;

广告位

1条评论

  1. lq 说:

    路过,虽然看不懂,貌似这个wp模板很流行~
    呵呵

留下评论