Apache配置實現cgi

裝完Apache,需要修改apache的配置文件: nano /etc/httpd/conf/httpd.conf 配置文件中有 ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"這個指令,指示了默認的cgi-bin的路徑。 /var/www/cgi-bin/,在配置文件中也可以看到。 還需要配置 AddHandler cgi-script .cgi .pl 該配置
相關文章
相關標籤/搜索