DTC-Xen Installation

DTC-Xen / Dom0 Howtos

DTC-Xen / DomU Howtos


DTC Howtos




Devel docs

Wiki - i18n

Wiki - Meta


How to Configure Directory Index for an Individual Domain.


Apache can be configured to serve up a default page. Normally this is something like index.html or index.php or index.cgi or or index.htm or index.php4.

If you have both an index.php and index.html file in the root folder then Apache needs to know which file to choose.

Apache has a setting called DirectoryIndex.

The Directory Index setting in DTC General Configuration only defaults the Directory Index for the entire server.

This wiki page explains how to over ride the default server setting for an individual domain.

How to:

Use a .htaccess file to set an different Directory Index for an individual domain you must over ride the Directory Index value in the vHosts.conf file

In the domains html root folder create a file called .htaccess with the following line in it:

   DirectoryIndex index.html index.php index.cgi index.htm index.php4

This example over rides the site default to make index.html the first file that apache will serve up.

File Locations

  • vHosts
DTC writes vhost information into: /var/lib/dtc/etc/vhosts.conf
  • .htaccess web root
If the domain is and the admin is then the sites default web root will be at: /var/www/sites/

Editing this page means accepting its license.

Page last modified on July 01, 2010, at 09:55 AM EST