通过.htaccess 配置cgi环境

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 Says @ 08-10-9 12:23

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

看完了要说点啥么?

You must be logged in to post a comment.