Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: bcliburn on March 18, 2006, 04:13:10 PM

Title: Default MIME type
Post by: bcliburn on March 18, 2006, 04:13:10 PM
How do I change the default mime type to .php?  Is there a way to have the server look for .php and if not found look for .html then .htm etc?
Title: Re: Default MIME type
Post by: cactus on March 19, 2006, 11:20:14 AM
Quote from: "bcliburn"
How do I change the default mime type to .php?  Is there a way to have the server look for .php and if not found look for .html then .htm etc?


You can specify a default mime type (http://httpd.apache.org/docs/2.0/mod/core.html#defaulttype) in Apache (i don't know if this is sensible to do however), may be it is better/easier to add/modify the DirectoryIndex (http://httpd.apache.org/docs/2.0/mod/mod_dir.html#directoryindex) to specify which file(s) and in which order Apache should look for when it is trying to display the url.
Title: Re: Default MIME type
Post by: CharlieBrady on March 19, 2006, 08:57:38 PM
Quote from: "bcliburn"
How do I change the default mime type to .php?  Is there a way to have the server look for .php and if not found look for .html then .htm etc?


If dynamic content in enabled for an i-bay, then apache already searches for index.php and then index.html, then index.htm.
Title: Default MIME type
Post by: bcliburn on March 20, 2006, 06:43:13 AM
Cool thanks, I guess I'm still used to using m$ servers and having to manually add .php I took out the index.html and it works fine now.  :pint: