Apache::PassFile - print a file to STDOUT


Apache-GzipChain documentation  | view source Contained in the Apache-GzipChain distribution.

Index


NAME

Top

Apache::PassFile - print a file to STDOUT

SYNOPSIS

Top

In the conf/access.conf file of your Apache installation add lines

	<Files *.html>
	SetHandler perl-script
	PerlHandler Apache::OutputChain Apache::GzipChain Apache::PassFile
	</Files>

DESCRIPTION

Top

This handler implements nothing but a quite efficient cat(1) in perl. While it innocently prints to STDOUT it may well be the case that STDOUT has been tied, and that's the only reason why this module is needed. Once we can stack any apache modules on top of each other, this module becomes obsolete.

PassFile reads files from disk in chunks of size BUFFERSIZE. BUFFERSIZE is a global variable that can be set via the BUFFERSIZE method. The default value is 16384.

CONFIGURATION

Top

Per default the module sets the Last Modified header. It requires HTTP::Date in order to do so. You can suppress that by setting

    PerlSetVar no_mtime true

AUTHOR

Top

(c) 1997 Jan Pazdziora, adelton@fi.muni.cz, at Faculty of Informatics, Masaryk University, Brno (small performance changes by Andreas Koenig)

LICENSE

Top

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.


Apache-GzipChain documentation  | view source Contained in the Apache-GzipChain distribution.