• 周六. 5月 3rd, 2025

Linux apache cgi 的开启

11月 10, 2020

1、打开 AddHandler cgi-script .cgi

vi /etc/httpd/conf/httpd.conf

# AddHandler allows you to map certain file extensions to "handlers":
# actions unrelated to filetype. These can be either built into the server
# or added with the Action directive (see below)
#
# To use CGI scripts outside of ScriptAliased directories:
# (You will also need to add "ExecCGI" to the "Options" directive.)
#
AddHandler cgi-script .cgi

2、指令打开 cgi 模块

a2enmod cgi
service apache2 restart

相关文章