Skip to content

Instantly share code, notes, and snippets.

@netdesign
Created February 9, 2012 10:06
Show Gist options
  • Save netdesign/1779002 to your computer and use it in GitHub Desktop.
Save netdesign/1779002 to your computer and use it in GitHub Desktop.
Apache conf
apache2.conf
Include /etc/apache2/mods-enabled/*.load
Include /etc/apache2/mods-enabled/*.conf
[ext_filter.conf AND ext_filter.load BOTH EXIST]
/etc/apache2/mods-enabled/ext_filter.conf
# mod_ext_filter directive to define a filter
# to HTML-ize text/c files using the external
# program /usr/bin/enscript, with the type of
# the result set to text/html
ExtFilterDefine testFilter mode=output \
intype=text/html outtype=text/html \
cmd="/bin/grep hello"
<Directory "/media/netdesign/Lavori/mq/www">
# core directive to cause the new filter to
# be run on output
SetOutputFilter testFilter
# mod_ext_filter directive to set the debug
# level just high enough to see a log message
# per request showing the configuration in force
ExtFilterOptions LogStderr DebugLevel=9
</Directory>
[Thu Feb 09 11:44:06 2012] [debug] mod_ext_filter.c(642): [client 127.0.0.1] filtering `/Lavori/mq/www/fb.html' of type `text/html' through `/bin/grep', cfg ExtFilterOptions DebugLevel=9 LogStderr !PreserveContentLength ExtFilterInType */* ExtFilterOuttype text/html, referer: http://127.0.0.1/Lavori/mq/www/
[Thu Feb 09 11:44:06 2012] [debug] mod_ext_filter.c(834): [client 127.0.0.1] (70014)End of file found: apr_file_read(child output), len 18446744073709551615, referer: http://127.0.0.1/Lavori/mq/www/
[Thu Feb 09 11:24:24 2012] [debug] mod_ext_filter.c(642): [client 127.0.0.1] filtering `/Lavori/mq/www/fb.html' of type `text/html' through `/bin/grep', cfg ExtFilterOptions DebugLevel=9 LogStderr !PreserveContentLength ExtFilterInType */* ExtFilterOuttype text/html, referer: http://127.0.0.1/Lavori/mq/www/
[Thu Feb 09 11:24:24 2012] [debug] mod_ext_filter.c(834): [client 127.0.0.1] (70014)End of file found: apr_file_read(child output), len 18446744073709551615, referer: http://127.0.0.1/Lavori/mq/www/
[Thu Feb 09 11:24:24 2012] [debug] mod_ext_filter.c(642): [client 127.0.0.1] filtering `/Lavori/mq/www/stk/style.fb.css' of type `text/html' through `/bin/grep', cfg ExtFilterOptions DebugLevel=9 LogStderr !PreserveContentLength ExtFilterInType */* ExtFilterOuttype text/html, referer: http://127.0.0.1/Lavori/mq/www/fb.html
[Thu Feb 09 11:24:24 2012] [debug] mod_ext_filter.c(834): [client 127.0.0.1] (70014)End of file found: apr_file_read(child output), len 18446744073709551615, referer: http://127.0.0.1/Lavori/mq/www/fb.html
[Thu Feb 09 11:24:25 2012] [debug] mod_ext_filter.c(642): [client 127.0.0.1] filtering `/Lavori/mq/www/stk/logo.png' of type `text/html' through `/bin/grep', cfg ExtFilterOptions DebugLevel=9 LogStderr !PreserveContentLength ExtFilterInType */* ExtFilterOuttype text/html, referer: http://127.0.0.1/Lavori/mq/www/fb.html
[Thu Feb 09 11:24:25 2012] [debug] mod_ext_filter.c(642): [client 127.0.0.1] filtering `/Lavori/mq/www/stk/banner.jpg' of type `text/html' through `/bin/grep', cfg ExtFilterOptions DebugLevel=9 LogStderr !PreserveContentLength ExtFilterInType */* ExtFilterOuttype text/html, referer: http://127.0.0.1/Lavori/mq/www/fb.html
[Thu Feb 09 11:24:25 2012] [debug] mod_ext_filter.c(642): [client 127.0.0.1] filtering `/Lavori/mq/www/stk/arredobagno.png' of type `text/html' through `/bin/grep', cfg ExtFilterOptions DebugLevel=9 LogStderr !PreserveContentLength ExtFilterInType */* ExtFilterOuttype text/html, referer: http://127.0.0.1/Lavori/mq/www/fb.html
[Thu Feb 09 11:24:25 2012] [debug] mod_ext_filter.c(834): [client 127.0.0.1] (70014)End of file found: apr_file_read(child output), len 18446744073709551615, referer: http://127.0.0.1/Lavori/mq/www/fb.html
[Thu Feb 09 11:24:25 2012] [debug] mod_ext_filter.c(834): [client 127.0.0.1] (70014)End of file found: apr_file_read(child output), len 18446744073709551615, referer: http://127.0.0.1/Lavori/mq/www/fb.html
[Thu Feb 09 11:24:25 2012] [debug] mod_ext_filter.c(642): [client 127.0.0.1] filtering `/Lavori/mq/www/stk/ceramiche.jpg' of type `text/html' through `/bin/grep', cfg ExtFilterOptions DebugLevel=9 LogStderr !PreserveContentLength ExtFilterInType */* ExtFilterOuttype text/html, referer: http://127.0.0.1/Lavori/mq/www/fb.html
[Thu Feb 09 11:24:25 2012] [debug] mod_ext_filter.c(834): [client 127.0.0.1] (70014)End of file found: apr_file_read(child output), len 18446744073709551615, referer: http://127.0.0.1/Lavori/mq/www/fb.html
[Thu Feb 09 11:24:25 2012] [debug] mod_ext_filter.c(642): [client 127.0.0.1] filtering `/Lavori/mq/www/stk/accessori.png' of type `text/html' through `/bin/grep', cfg ExtFilterOptions DebugLevel=9 LogStderr !PreserveContentLength ExtFilterInType */* ExtFilterOuttype text/html, referer: http://127.0.0.1/Lavori/mq/www/fb.html
[Thu Feb 09 11:24:25 2012] [debug] mod_ext_filter.c(834): [client 127.0.0.1] (70014)End of file found: apr_file_read(child output), len 18446744073709551615, referer: http://127.0.0.1/Lavori/mq/www/fb.html
[Thu Feb 09 11:24:25 2012] [debug] mod_ext_filter.c(834): [client 127.0.0.1] (70014)End of file found: apr_file_read(child output), len 18446744073709551615, referer: http://127.0.0.1/Lavori/mq/www/fb.html
[Thu Feb 09 11:24:25 2012] [debug] mod_ext_filter.c(642): [client 127.0.0.1] filtering `/Lavori/mq/www/stk/ubuntu-m-webfont.woff' of type `text/html' through `/bin/grep', cfg ExtFilterOptions DebugLevel=9 LogStderr !PreserveContentLength ExtFilterInType */* ExtFilterOuttype text/html, referer: http://127.0.0.1/Lavori/mq/www/fb.html
[Thu Feb 09 11:24:25 2012] [debug] mod_ext_filter.c(834): [client 127.0.0.1] (70014)End of file found: apr_file_read(child output), len 18446744073709551615, referer: http://127.0.0.1/Lavori/mq/www/fb.html
[Thu Feb 09 11:24:25 2012] [debug] mod_ext_filter.c(642): [client 127.0.0.1] filtering `/Lavori/mq/www/stk/logo.little.png' of type `text/html' through `/bin/grep', cfg ExtFilterOptions DebugLevel=9 LogStderr !PreserveContentLength ExtFilterInType */* ExtFilterOuttype text/html, referer: http://127.0.0.1/Lavori/mq/www/fb.html
[Thu Feb 09 11:24:25 2012] [debug] mod_ext_filter.c(834): [client 127.0.0.1] (70014)End of file found: apr_file_read(child output), len 18446744073709551615, referer: http://127.0.0.1/Lavori/mq/www/fb.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment