Re: Strange problem with mime-type

From: Date: Mon, 03 Dec 2001 16:29:50 +0000
Subject: Re: Strange problem with mime-type
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-5176@lists.php.net to get a copy of this message
Hi Chris Chris <cth@fastmail.dnswatch.com> a écrit > Hello, > This is an easy answer. You MUST define this in addition to the others > listed in the httpd.conf file: > > index.php index.php3 index.php4 index.phtml index.phps > > this(ese) lines are found under the heading: > <IfModule mod_dir.c> > DirectoryIndex index.html index.htm index.php default.html default.htm > </IfModule> > > Your ISP should know this. Simply tell him/ her to add them. :-) > > I thought it might be something like that. So I asked them -- and they refused, even after I explained that lack of this was displaying my source code to the world. Unfortunately, I didn't choose this host, the client did, so I can't easily do the obvious thing -- tell them to take a flying leap! I hoped I might be able to use a .htaccess file to achieve the same ends, but I think they must have disabled using .htaccess for this purpose as I can't get it to work -- although it does work for user authorization, with a .htpassword file. Their suggested solution? Create an index.html file in each directory, with a meta-refresh of zero, redirecting to the real index file! Great ... Veronica

« previous php.install (#5176) next »