Where can I specify default file names and extensions

Posted on 2005-03-02
Medium Priority
Last Modified: 2010-03-04
I am running Apache 1.3.31 with php on Win2k3. Apache recognises index.html files but not index.php. In httpd.config I have added:

   AddType application/x-httpd-php .php
   AddType application/x-httpd-php-source .phps

# End of aliases.

and :
    AddType application/x-httpd-php .php

    AddType application/x-tar .tgz

Any ideas please?
Question by:ncw
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 27

Accepted Solution

caterham_www earned 1000 total points
ID: 13438661
Is PHP loaded as a module like

LoadFile "C:/Prog/Apache Group/apache/bin/php4ts.dll"
LoadModule php4_module "C:/Prog/Apache Group/apache/bin/php4apache2.dll"

in your httpd.conf?

if you ment the DirectoryIndex, search in your httpd.conf for DirectoryIndex and add index.php like

DirectotyIndex index.html index.php default.html

Author Comment

ID: 13438988
Yes, php4_module is loaded and php works fine. It was the DirectoryIndex I was looking for, thanks very much.

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question