httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan H N Chin <jc...@newton.ac.uk>
Subject [users@httpd] ext_filter + negotiation?
Date Fri, 30 May 2008 15:54:32 GMT
Using debian's apache 2.0.54 and 2.2.3, I define a filter:

	ExtFilterDefine test \
		mode=output intype=text/html \
		cmd="/usr/bin/perl -pe 's/foo/bar/g'"

I use it with:

	DocumentRoot /export/www
	<Directory /export/www>
		Options Indexes FollowSymLinks MultiViews
	</Directory>
	<Location />
		SetOutputFilter test
	</Location>

I create a page "/test.html":

	<html><p>foo</p></html>


If I GET http://server/test.html, the substitution happens.
However, if I GET http://server/test, it does not.

What do I need to do to make substitution also work with
content negotiation?


thanks,

-jonathan

-- 
   Jonathan H N Chin     | deputy computer | Newton Institute, Cambridge, UK
<jc254@newton.cam.ac.uk> | systems manager | tel/fax: +44 1223 767091/330508

---------------------------------------------------------------------
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