Configure Default Apache Index Page: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
== Enable Includes in Default VHost == | == Enable Includes in Default VHost == | ||
'''SuSE''' | |||
/etc/apache2/default-server.conf | /etc/apache2/default-server.conf | ||
<Directory "/srv/www/htdocs"> | <Directory "/srv/www/htdocs"> | ||
Line 12: | Line 12: | ||
</Directory> | </Directory> | ||
'''Gentoo''' | |||
An unused setup should have DEFAULT_VHOST option set in: /etc/conf.d/apache2: | An unused setup should have DEFAULT_VHOST option set in: /etc/conf.d/apache2: | ||
APACHE2_OPTS="-D DEFAULT_VHOST" | APACHE2_OPTS="-D DEFAULT_VHOST" | ||
Line 22: | Line 22: | ||
</Directory> | </Directory> | ||
== AddType == | === AddType === | ||
In /etc/apache2/mod_mime-defaults.conf OR /etc/apache2/httpd.conf uncomment: | In /etc/apache2/mod_mime-defaults.conf OR /etc/apache2/httpd.conf uncomment: | ||
AddType text/html .shtml | AddType text/html .shtml | ||
AddOutputFilter INCLUDES .shtml | AddOutputFilter INCLUDES .shtml | ||
== Copy Default Research Webpage == | === Copy Default Research Webpage === | ||
Change to your root web directory, /var/www/localhost/htdocs or /srv/www/htdocs | Change to your root web directory, /var/www/localhost/htdocs or /srv/www/htdocs | ||
# cd /var/www/localhost/htdocs | # cd /var/www/localhost/htdocs | ||
# scp -p root@tirpitz:/home/projects/infrastructure/htdocs/share/index.shtml . | # scp -p root@tirpitz:/home/projects/infrastructure/htdocs/share/index.shtml . | ||
== Restart Apache == | === Restart Apache === | ||
# /etc/init.d/apache2 restart | # /etc/init.d/apache2 restart |
Revision as of 21:28, 11 April 2006
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 Configure Options 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