httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vi ...@bexout.com>
Subject Re: [users@httpd] DefaultType text/plain?
Date Mon, 15 Mar 2004 14:10:12 GMT
Can't I configure apache so that whenever it doesn't know the type, it 
sends error (for example 404 :))?
I mean, if I put file heh.blah, and apache is requested to return it, it 
returns text/html with contents of an
error.

Joshua Slive wrote:

>On Mon, 15 Mar 2004, Vi wrote:
>
>  
>
>>Hi, in my httpd.conf I have: DefaultType text/plain
>>Is it possible to enter such value so that it will alway return nothing
>>if it doesn't know type?
>>So for example if my php configuration for some reason fails, it won't
>>show the sources?
>>Maybe DefaultType none ?
>>    
>>
>
>No, you can't do DefaultType None, although there is an outstanding bug
>report requesting this functionality.
>
>But it wouldn't help you in any case.  Regardless of the Content-Type,
>browsers can always get at your source code if you send it.  They just
>need to save it and open it separately.
>
>Joshua.
>
>---------------------------------------------------------------------
>The official User-To-User support forum of the Apache HTTP Server Project.
>See <URL:http://httpd.apache.org/userslist.html> for more info.
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>
>
>  
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message