Apache2Module

mod_cgi #

Nach einer normalen Installation von Apache2 und ruby, python und perl kann man das CGI Modul einfach konfigurieren.

Ziel ist es alle Dateien mit der Endung rb (ruby), pl (perl), py (python) und sh (shell) als Ausgabescript zu nutzen. Folgende Konfiguration genügt.

<IfModule mod_cgi.c>
 AddHandler cgi-script .cgi .py .rb .pl .sh
 <Files ~ "\.(rb|py|pl|sh|php)$">
   Options +ExecCGI
 </Files>
</IfModule>

Tags:  Apache, Tomcat