ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: svn commit: r511986 - /ant/core/trunk/docs/.htaccess
Date Tue, 27 Feb 2007 07:31:32 GMT
I am not a httpd guru, but I searched a little bit ;-)

httpd supports input and output filters [1] (like Servlets ;-)
While AddOutputFilter [2] adds a named filter to an URL pattern.

   AddOutputFilter INCLUDES .html
   --> Adds the output filter "INCLUDES" to all URLs wich ends on ".html"

So next question: what does that filter do?
Try to find a module with that name and you'll see mod_include [3] is
the right one: "Implemented as an output filter since Apache 2.0"

    "This module provides a filter which will process files before they are sent 
    to the client. The processing is controlled by specially formatted SGML comments, 
    referred to as elements. These elements allow conditional text, the inclusion of 
    other files or programs, as well as the setting and printing of environment 
    variables."


Nice - was new to me ...


Jan


[1] http://httpd.apache.org/docs/2.2/filter.html 
[2] http://httpd.apache.org/docs/2.2/mod/mod_mime.html#addoutputfilter
[3] http://httpd.apache.org/docs/2.2/mod/mod_include.html

>-----Urspr√ľngliche Nachricht-----
>Von: Antoine Levy-Lambert [mailto:antoine@gmx.de] 
>Gesendet: Montag, 26. Februar 2007 23:50
>An: Ant Developers List
>Betreff: Re: svn commit: r511986 - /ant/core/trunk/docs/.htaccess
>
>Hello Martijn,
>
>can you explain what this .htaccess does to the httpd ignorant 
>public (for instance me) ?
>
>Regards,
>
>Antoine
>
>-------- Original-Nachricht --------
>Datum: Mon, 26 Feb 2007 20:15:53 -0000
>Von: jkf@apache.org
>An: ant-cvs@apache.org
>CC: 
>Betreff: svn commit: r511986 - /ant/core/trunk/docs/.htaccess
>
>> Author: jkf
>> Date: Mon Feb 26 12:15:53 2007
>> New Revision: 511986
>> 
>> URL: http://svn.apache.org/viewvc?view=rev&rev=511986
>> Log:
>> .htaccess change on behalf of infra
>> 
>> Modified:
>>     ant/core/trunk/docs/.htaccess
>> 
>> Modified: ant/core/trunk/docs/.htaccess
>> URL:
>> 
>http://svn.apache.org/viewvc/ant/core/trunk/docs/.htaccess?view
>=diff&rev=511986&r1=511985&r2=511986
>> 
>===============================================================
>===============
>> --- ant/core/trunk/docs/.htaccess (original)
>> +++ ant/core/trunk/docs/.htaccess Mon Feb 26 12:15:53 2007
>> @@ -1,3 +1 @@
>> -<Files "index.html">
>> -  SetOutputFilter INCLUDES
>> -</Files>
>> \ No newline at end of file
>> +AddOutputFilter INCLUDES .html
>> \ No newline at end of file
>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
>> For additional commands, e-mail: dev-help@ant.apache.org
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
>For additional commands, e-mail: dev-help@ant.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message