http://www.perlmonks.org?node_id=462654

<VirtualHost *:80> ServerName edu.rasnz.pdj ServerAdmin webmaster@localhost DocumentRoot /var/www/edu/httpdocs <Directory /> Options FollowSymLinks +ExecCGI AllowOverride None </Directory> <Directory /var/www/httpdocs> Options +ExecCGI Includes Indexes FollowSymLinks Multi +Views AllowOverride All Order allow,deny allow from all </Directory> ScriptAlias /cgi-bin/ /var/www/edu/cgi-bin/ <Directory "/var/www/edu/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all AddHandler cgi-script .pl </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log # Possible values include: debug, info, notice, warn, error, c +rit, # alert, emerg. LogLevel warn CustomLog ${APACHE_LOG_DIR}/access.log combined </VirtualHost>