Configure Default Apache Index Page

From Research
Revision as of 21:18, 11 April 2006 by Mmmark (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

>=apache-2.0.53

Add Includes Option for Default web Directory

/etc/apache2/default-server.conf OR /etc/apache2/httpd.conf OR gentoo=next section

On Suse

/etc/apache2/default-server.conf <Directory "/srv/www/htdocs">

   Options Includes
   DirectoryIndex index.shtml index.html index.html.var

</Directory>

On Gentoo

If /etc/conf.d/apache2 has DEFAULT_VHOST option set: /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

scp -p root@tirpitz:/home/projects/infrastructure/htdocs/share/index.shtml .

Restart Apache

/etc/init.d/apache2 restart