LoadModule cgi_module modules/mod_cgi.so ScriptAlias /cgi-bin/ "/var/www/cgi-bin/" <Directory "/var/www/cgi-bin/"> AllowOverride None Options ExecCGI Order allow,deny Allow from all </Directory>
#!/usr/bin/perl print "Content-Type: text/html\n\n"; print "<html><body><h1>This is CGI-script</h1>" . "<p>Apache installed</p></body></html>"; exit 0;