Skip to Content.
Sympa Menu

sm-discuss - [SM-Discuss] php and directoryindex

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: "Sergey A. Lipnevich" <sergeyli AT pisem.net>
  • To: sm-discuss AT lists.ibiblio.org
  • Subject: [SM-Discuss] php and directoryindex
  • Date: Fri, 19 Jul 2002 04:47:59 +0400 (MSD)

Hi All,

I have one problem with httpd2 and php, maybe somebody
heard of a solution. For a certain directory, say,
"Alias /dir/ /this/dir/", I have "DirectoryIndex
index.php" and "Options Indexes" in my httpd.conf. If I
access this as "http://host/dir/index.php";, index.php
gets interpreted by PHP engine and I see a generated
html. If use just "http://host/dir/";, I get _the
source_ of index.php, which is not funny or useful at
all. I tried setting DirectoryIndex directive globally,
and experimenting with "AddType ... .php" without
success. Radically, I could probably achieve correct
handling if I set php as a default mime type for
documents, but somehow I don't like this and didn't
even try.
Will be grateful for any ideas!

Sergey, "collab" guru.




Archive powered by MHonArc 2.6.24.

Top of Page