[X-Unix] Apache & ifconfig - success!

Pedro fp lists at pedro.Net.au
Thu Oct 21 20:31:52 PDT 2004


On 21/10/2004, at 8:24 PM, Eugene wrote:

> Do you have another DirectoryIndex directive in your httpd.conf that
> does NOT include index.php?

As it turns out I do, part of the default OS X configuration I guess ...

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

That entire block is repeated within the <IfModule mod_php4.c> block ...

<IfModule mod_php4.c>
     # If php is turned on, we repsect .php and .phps files.
     AddType application/x-httpd-php .php
     AddType application/x-httpd-php-source .phps

     # Since most users will want index.php to work we
     # also automatically enable index.php
     <IfModule mod_dir.c>
         DirectoryIndex index.html index.php
     </IfModule>
</IfModule>

With, as you can see, the difference being the addition of index.php

Cheers, Pedro :-)

Web: <http://www.pedro.net.au>                    PGP Key ID: 387CD96F
Instant messaging...  AIM: bandidoOfOz  ICQ: 27671678  Jabber: pedrofp
                       MSN: mail at pedro.net.au           Yahoo: pedro_fp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"All that is necessary for the triumph of evil,
is that good men (people) do nothing."
                                    Edmund Burke



More information about the X-Unix mailing list