Reply to Re: Question on html command

Your name:

Reply:


Posted by Steven Saunderson on 07/31/06 08:59

On Mon, 31 Jul 2006 04:44:13 -0400, "Chris F.A. Johnson"
<cfajohnson@gmail.com> wrote:

> >> In that case a file is rendered as text (.txt) I suppose :-)
> >
> > By default I believe. I'm sure there is an Apache option to specify the
> > default type but I've never used it. There is also a facility to get
> > Apache to try different extensions on the name (e.g. somewhere.htm) when
> > the original name is not found.
>
> It must be an Apache option. When I go to
> <http://cfaj.freeshell.org/testing/somewhere>, it serves it up as
> html, but when I use Apache on my local machine it gives me text.

I just checked an example .conf file and found :

# DefaultType is the default MIME type the server will use for a
# document
# if it cannot otherwise determine one, such as from filename
# extensions.
#
DefaultType text/plain

--
Steven

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация