Multiple index files and server admin ?

Jkle

Registered
Hello,

I am trying to have more than one index file name using the server admin graphical tool in virtual hosts : I need index.html, index.php and index.php3.

It works with my main server name when I change manually in the httpd.conf:
<IfModule mod_dir.c>
DirectoryIndex index.html
</IfModule>

to

<IfModule mod_dir.c>
DirectoryIndex index.html index.php
</IfModule>

BUT the server admin seems to declare the virtual hosts in the file httpd_macosxserver.conf, and the syntax is :
DirectoryIndex "index.html"

I tried to enter index.html and index.php in the server admin tool, separated with a space, with a "," or with a ";" and it dont work at all. Any suggestion ?

Thanks in advance for your help.
 
Got It !!

The correct syntax in httpd_macosxserver.conf is :

DirectoryIndex "index.html""index.php""index.php3"

So in the server admin tool I had to enter :
index.html""index.php""index.php3
(without the starting and ending ")

Silly no ?
 
Back
Top