Forum Moderators: phranque

Message Too Old, No Replies

A newbie's problem with default pages

         

mare

3:45 pm on Jan 26, 2006 (gmt 0)

10+ Year Member



A bit frustrating when you find out that you actually *don't know* what to search Google for....

Anyway, the problem:
I've installed some CMS (written in PHP) on a local pc and then found out that this CMS always calls a home page with something like "localhost/blahblah/" instead of "localhost/blahblah/index.php". Thus I'm always getting the content of "localhost/blahblah/" directory.

How am I to tell the server (Apache 2) to look for default pages? (I know that IIS can be configured to search for "index.htm", "default.htm" etc., but how do I do that with Apache?)

jetboy

4:18 pm on Jan 26, 2006 (gmt 0)

10+ Year Member



Assuming you've already got PHP working, look in Apache's httpd.conf for 'DirectoryIndex'.

A line like:

DirectoryIndex index.html index.html.var index.php

should do what you want.

You can put DirectoryIndex entries into .htaccess files too if needed.

mare

8:19 am on Jan 27, 2006 (gmt 0)

10+ Year Member



Yey!
:)
Thnx