====== Apache virtual host for Impilo ======
Ideally, all documentation created for Impilo will be put in a centralized, Web-delivered resource. To allow this, I created a virtual host profile with the following content:
* First, let's copy the default host settings to an impilo-specific file:
% cd /etc/apache2/sites-available
% sudo cp default impilo
* Second, this ''impilo'' file needs to be modified such that the finale version looks like this:
NameVirtualHost *
ServerAdmin webmaster@localhost
DocumentRoot /opt/bio/docs
Options FollowSymLinks
AllowOverride None
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
ScriptAlias /cgi-bin/ /opt/bio/docs/cgi-bin/
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
AddHandler cgi-script cgi pl
Order allow,deny
Allow from all
ErrorLog /var/log/apache2/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /var/log/apache2/access.log combined
ServerSignature On
Alias /doc/ "/usr/share/doc/"
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
* Finally, you need to tell the system that the new default host setting file has changed:
% sudo a2dissite default
% sudo a2ensite impilo
% sudo /etc/init.d/apache2 restart