Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I change the default DirectoryIndex for different domains?

.htaccess

How do I change the default DirectoryIndex for different domains?

by  Wullie  Posted    (Edited  )
The following explains how you can change the default documents that Apache looks and use different ones for each virtualhost.

Just add the following to your htaccess file and place it in each virtualhost that does not require the server default configuration or place the code in the specific virtualhost directives. Change the file names to suit you, apache looks for these files in order from left to right.

DirectoryIndex index.shtml index.html index.cgi index.pl index.php

Hope this helps

Wullie

sales@freshlookdesign.co.uk
www.freshlookdesign.co.uk
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top