Translations of this page:

Apache virtual host for Impilo

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 *
<VirtualHost *>
        ServerAdmin webmaster@localhost
 
        DocumentRoot /opt/bio/docs
        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /opt/bio/docs>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>
 
        ScriptAlias /cgi-bin/ /opt/bio/docs/cgi-bin/
        <Directory "/opt/bio/docs/cgi-bin">
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                AddHandler cgi-script cgi pl
                Order allow,deny
                Allow from all
        </Directory>
 
        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/"
    <Directory "/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
    </Directory>
</VirtualHost>
  • 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
en/install/apache_config_impilo.txt · Last modified: 2021/05/29 15:35 by 127.0.0.1
CC Attribution-Share Alike 4.0 International Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International