|
Posted by Chris F.A. Johnson on 07/31/06 08:44
On 2006-07-31, Steven Saunderson wrote:
> On Mon, 31 Jul 2006 09:13:53 +0200, "Nico Schuyt" <nschuyt@hotmail.com>
> wrote:
>
>> > I don't see why "somewhere" is invalid. Try
>> > <http://phelum.com/files/somewhere>. It is a text file containing
>> > some doctypes. I admit the name might be silly but it is valid (I
>> > hope).
>>
>> 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.
The freeshell server also serves up other types of file correctly,
e.g.: <http://cfaj.freeshell.org/testing/baddrop>.
--
Chris F.A. Johnson <http://cfaj.freeshell.org>
===================================================================
Author:
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
[Back to original message]
|