                          mod_tidy - a TidyLib based DSO module for the Apache HTTP Server Version 2


INSTALLATION
============

Prerequisites

* Apache 2.0.47 - http://www.apache.org/
You will need the webserver and the source headers. Other versions 
may work but have not been tested.

Building and Installation

You need to know where the apxs tool is. apxs is part of the apache2 
webserver and needed to compile mod_tidy.

$ tar xfz mod_tidy-0.5.tar.gz
$ cd mod_tidy-0.4
$ ./configure --with-apxs=/path/to/apxs 
$ make
$ su root
# make install

That compiles mod_tidy and installs the module into the httpd module directory.
Now you need to configure the webserver.


CONFIGURATION
=============

Add the following directives to your httpd.conf file. The path to 
mod_tidy.so depends on your apache installation.

LoadModule	tidy_module	/usr/local/httpd/modules/mod_tidy.so
AddOutputFilterByType	TIDY	text/html application/xhtml+xml

So the webserver loads mod_tidy and uses mod_tidy to filter HTML and XHTML 
output.

To set TidyLib options you use the TidyOption directive. Here an example that
sets the character encoding to UTF-8.

TidyOption char-encoding utf8

For other TidyLib options refer to the TidyLib documentation on http://tidy.sourceforge.net/docs/quickref.html.
