Re: Strange problem with mime-type

From: Date: Tue, 04 Dec 2001 23:53:09 +0000
Subject: Re: Strange problem with mime-type
Groups: php.install 
Request: Send a blank email to php-install+get-5195@lists.php.net to get a copy of this message
> See comments inline ... > Matt <matt@epooch.com> a écrit dans le message : > 001d01c17cbd$c6a91f00$059aa8c0@Pooch... >> > That's what happens when you don't specify index.php in the index >> > section of your httpd.conf file... but you already knew that. ;-) >> >> Shouldn't you get the standard Apache "Index of /" Directory Index >> Listing if there isn't a valid DirectoryIndex file in the directory? > > ... unless directory browsing is switched off (as it should be) when > you'd expect to get "Forbidden" ?? (I think -- I'm no Apache expert). >> >> > If I specify the directory and the filename, >> > the code is executed correctly. And the same thing happens with >> > index.shtml files: if I just give the directory name, the file is >> > displayed but any include directives are not parsed. If I specify >> > the filename, they are. >> >> Veronica, didn't you say way back that the ISP requires you to use >> .php > for >> *php3* and .php4 for php4? >> Could that be the trouble? Why not start from scratch, and put only >> an index.php4 file in the directory that only has: >> <?php >> phpinfo(); >> ?> >> and browser to server and see what you get. > > I did that, creating a new subdirectory with only one file in it, and I > got the source code displayed in the browser when I just went to > www.mydomain.com/test/ -- but when I went to > www.mydomain.com/test/index.php4 the code was interpreted and I got the > output you would expect. This is what's weird -- As I stated earlier in the thread, placing index.php and/ or index.php3 and/ or index.php4 and/ or index.phps and/ or index.phtml in the following section of Apache's httpd.conf file *cures* this. <IfModule mod_dir.c> DirectoryIndex index.html index.htm index.php default.html default.htm </IfModule> Having provided web services for 6+ yrs. I can assure you that this has *0* ill effects on clients - contrary to your ISP's statement. PHP is a standard internet extension and widely accepted globally. Your ISP needs a clue. AS always, best wishes, Chris > if it isn't configured > to recognise anything other than .htm and .html, why am I not getting > either a directory listing or "forbidden"? If Apache knows it's got to > look for index.php4, why is it just returning it to the browser instead > of > interpreting it first? > > I'm sure there must be some kind of misconfiguration. The ISP say they > can't possibly change anything because it would affect everyone else on > the server -- a good thing, I would have thought, since they can't have > many clients who want their includes to fail and their PHP source to be > displayed to the world. > > Chris is right, the ISP is a dog (ex-telco monopoly and it shows!). > They seem to think I'm making a fuss about nothing and I should just > stick an index.html in every directory with a meta-refresh of zero > redirecting to the real page. The client insisted on using this ISP, > and the site launches today, so that's what I've done for the present. > I'll try to talk them into switching hosts later. Thanks for your help > anyway ... > > Veronica > > > > > -- > PHP Install Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-install-unsubscribe@lists.php.net > For additional commands, e-mail: php-install-help@lists.php.net > To contact the list administrators, e-mail: > php-list-admin@lists.php.net -- H.R. Communications Corp. http://www.dnswatch.com ............................................ This email was sent using DNSWATCH WebMail. "Get an account today!" http://www.dnswatch.com/dnswm112/

« previous php.install (#5195) next »