<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "/usr/share/xml/docbook/schema/dtd/4.2/docbookx.dtd">

<refentry id="command.tidy-proxy">

 <xi:include href="variables.xml"
             xpointer="xpointer(/refentry/refentryinfo)"
             xmlns:xi="http://www.w3.org/2001/XInclude"/>

 <refmeta>
  <refentrytitle>tidy-proxy</refentrytitle>
  <manvolnum>1</manvolnum>
  <xi:include href="variables.xml"
              xpointer="xpointer(/refentry/refmeta/*)"
              xmlns:xi="http://www.w3.org/2001/XInclude"/>
 </refmeta>

 <refnamediv>
  <refname>tidy-proxy</refname>
  <refpurpose>small http proxy which tidies html</refpurpose>
 </refnamediv>

 <refsynopsisdiv>
  <cmdsynopsis sepchar=" ">
   <command moreinfo="NONE">tidy-proxy</command>
   <arg choice="OPT" rep="NOREPEAT">
    <option> --host</option> hostname
   </arg>
   <arg choice="OPT" rep="NOREPEAT">
    <option> -p</option> port
   </arg>
   <arg choice="OPT" rep="NOREPEAT">
    <option> -d</option>
   </arg>
   <arg choice="OPT" rep="NOREPEAT">
    <option> -l</option> {1|2}
   </arg>
   <arg choice="OPT" rep="NOREPEAT">
    <option> --action</option> {t|v}
   </arg>
   <arg choice="OPT" rep="NOREPEAT">
    <option> --tidy-cmd</option> tidy-command
   </arg>
   <arg choice="OPT" rep="NOREPEAT">
    <option> --validate-cmd</option> validate-command
   </arg>
   <arg choice="OPT" rep="NOREPEAT">
    <option> --pid</option> pid-file
   </arg>
  </cmdsynopsis>
 </refsynopsisdiv>
 <refsect1 id="tidy-proxy.description">
  <title>DESCRIPTION</title>
  <para>
   tidy-proxy is a small proxy server written in perl. using this
   proxy web-pages are checked for HTML errors with tidy or validate
   while they are downloaded.
   The results are displayed on top of that page.
   tidy-proxy is mainly intended for developing dynamic web-pages.
  </para>
 </refsect1>
 <refsect1 id="tidy-proxy.options">
 <title>OPTIONS</title>
 <variablelist>
  <varlistentry>
   <term>
    <option>--host</option> *host*
   </term>
   <listitem>
    <para>the host parameter sets the listening address for tidy-proxy. [default: localhost]</para>
   </listitem>
  </varlistentry>
  <varlistentry>
   <term>
    <option>-p, --port</option> *port*
   </term>
   <listitem>
    <para>port sets the listening port for tidy-proxy. [default: 9090]</para>
   </listitem>
  </varlistentry>
  <varlistentry>
   <term>
    <option>-d, --nodaemon</option>
   </term>
   <listitem>
    <para>run tidy-proxy in foreground</para>
   </listitem>
  </varlistentry>
  <varlistentry>
   <term>
    <option>-l, --level</option> *level*
   </term>
   <listitem>
    <para>level sets the filtering level for tidy-proxy 1: Warnings 2: Errors</para>
   </listitem>
  </varlistentry>
  <varlistentry>
   <term>
    <option>--action</option> *t|v*
   </term>
   <listitem>
    <para>set if to use *t*idy or *v*alidate. [default: tidy]</para>
   </listitem>
  </varlistentry>
  <varlistentry>
   <term>
    <option>--tidy-cmd</option> *cmd*
   </term>
   <listitem>
    <para>Command to use for tidy. [default: /usr/bin/tidy]</para>
   </listitem>
  </varlistentry>
  <varlistentry>
   <term>
    <option>--validate-cmd</option> *cmd*
   </term>
   <listitem>
    <para>Command to use for validate. [default: /usr/bin/validate]</para>
   </listitem>
  </varlistentry>
  <varlistentry>
   <term>
    <option>--pid</option> *pid-file*
   </term>
   <listitem>
    <para>Create a pid file. Works only in daemon mode.</para>
   </listitem>
  </varlistentry>
  <varlistentry>
   <term>
    <option>--dest-host</option> *destination host*
   </term>
   <listitem>
    <para>run tidy-proxy in reverse-proxy mode. tidy-proxy acts as normal webserver and forwards every request to *destination host*.</para>
   </listitem>
  </varlistentry>
  <varlistentry>
   <term>
    <option>--loc-rewrite</option>
   </term>
   <listitem>
    <simpara>
     rewrite the Location and the Host header in reverse-proxy mode.
    </simpara>
   </listitem>
   </varlistentry>
   <varlistentry>
    <term>
     <option>-h, -?, --help</option>
    </term>
    <listitem>
     <simpara>
      Prints help message.
     </simpara>
    </listitem>
   </varlistentry>
  </variablelist>
 </refsect1>
 <refsect1 id="tidy-proxy.see_also">
  <title>SEE ALSO</title>
  <simplelist type="inline">
   <member><command moreinfo="refentry">tidy</command>(1)</member>
   <member><command moreinfo="refentry">validate</command>(1)</member>
  </simplelist>
 </refsect1>
 <refsect1 id="tidy-proxy.author">
  <title>AUTHOR</title>
  <simpara>
   This manual page was written by
   <author>
    <firstname>Jonas</firstname>
    <surname>Meurer</surname>
   </author>
   <email>jonas@freesources.org</email>
   for the Debian distribution of tidy-proxy.
  </simpara>
 </refsect1>
 <refsect1 id="tidy-proxy.copyright">
  <title>COPYRIGHT</title>
  <simpara>
   Copyright (C) 2003-2008:
   <author>
    <firstname>Jonas</firstname>
    <surname>Meurer</surname>
   </author>
   <email>jonas@freesources.org</email>
   This manual page is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; version 2.

   This  program  is  distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
   General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
   02110-1301, USA.
  </simpara>
 </refsect1>
</refentry>
