< ページ移動: 1 2 >
http://www.exsample.com/cgi-bin/test.cgi
#!/usr/bin/perlprint "Content-type: text/html\n\n";print "Hello, World.";
ScriptAlias /cgi-bin/ "/usr/local/share/apache/cgi-bin/"<Directory "/usr/local/share/apache/cgi-bin">AllowOverride AllOptions +ExecCGIAddHandler cgi-script .cgi .plRequire all granted</Directory>
# apache2ctl -MLoaded Modules:core_module (static)so_module (static)watchdog_module (static)http_module (static)log_config_module (static)logio_module (static)version_module (static)unixd_module (static)access_compat_module (shared)alias_module (shared)auth_basic_module (shared)authn_core_module (shared)authn_file_module (shared)authz_core_module (shared)authz_host_module (shared)authz_user_module (shared)autoindex_module (shared)deflate_module (shared)dir_module (shared)env_module (shared)filter_module (shared)mime_module (shared)mpm_event_module (shared)negotiation_module (shared)setenvif_module (shared)status_module (shared)
# ls -la /etc/apache2/mods-available/cgi.load-rw-r--r-- 1 root root 58 7月 6 2016 /etc/apache2/mods-available/cgi.load