Configure Default Apache Index Page
Jump to navigation
Jump to search
This article explains how to setup a new installation of Apache with our default Research branded index page. Our index page uses server side includes to get the hostname of the machine so this must be configured.
This configuration is written for SuSE and Gentoo, with Apache >=apache-2.0.53.
Enable Includes in Default VHost
SuSE
/etc/apache2/default-server.conf
<Directory "/srv/www/htdocs"> Options Includes DirectoryIndex index.shtml index.html index.html.var </Directory>
Gentoo
An unused setup should have DEFAULT_VHOST option set in: /etc/conf.d/apache2:
APACHE2_OPTS="-D DEFAULT_VHOST"
/etc/apache2/vhosts.d/00_default_vhost.conf Make sure 'Options' has 'Includes'
<Directory "/var/www/localhost/htdocs"> Options Includes DirectoryIndex index.shtml index.html </Directory>
AddType
In /etc/apache2/mod_mime-defaults.conf OR /etc/apache2/httpd.conf uncomment:
AddType text/html .shtml AddOutputFilter INCLUDES .shtml
Copy Default Research Webpage
Change to your root web directory, /var/www/localhost/htdocs or /srv/www/htdocs
# cd /var/www/localhost/htdocs # scp -p root@tirpitz:/home/projects/infrastructure/htdocs/share/index.shtml .
Restart Apache
# /etc/init.d/apache2 restart