Конфиг апача:
<VirtualHost *:80>
ServerAdmin user@host
ServerName host
ServerAlias www.host
DocumentRoot /var/www/sitename
<Directory />
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
<Directory /cgi-bin>
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "Hello, World.";