Re: silly question - setting .php as default extension (Apache)
| From: | Ray | Date: | Tue, 09 Nov 2004 22:50:10 +0000 |
| Subject: | Re: silly question - setting .php as default extension (Apache) | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-201645@lists.php.net to get a copy of this message | ||
On Tuesday 09 November 2004 16:04, Brian A. Anderson wrote:
> Uuuuh... Where do I set the default server extension type to .php
> in the apache config? Right now the page will execute on my server,
> but if there is an index.php the server won't automatically open
> it, but instead browses the directory.
>
> Thanks in advance,
>
> -Brian
Your probably looking for the DirectoryIndex directive.
Apache 1.3.x
http://httpd.apache.org/docs/mod/mod_dir.html#directoryindex
Apache 2.0.x
http://httpd.apache.org/docs-2.0/mod/mod_dir.html#directoryindex