twhttpd Documentation

Copyright 2001 by Sam Ng

Version 0.94


Part A: Introduction

Most of the twhttpd configuration is supported only through configuration file.

The following command line options are supported:

-c [file] The location of the config file.
Default is /etc/twhttpd.conf
-V Show the version information of twhttpd
-h Show the usage manual of twhttpd

A configuration file consist of one general configuration part and several server configuration parts, where

For example, if you have 3 internal web server to protect, and you want your internal user to use the proxy server for outbound web access, you just need to run ONE copy of twhttpd with a total of 4 server configuration parts.

gen_opt1 = value1;

gen_opt2 = value2;

...

...

[ GENERAL CONFIG PART ]
server ( $listen = IP_Address:Port,

            $forward = IP_Address:Port,

            opt1 = value1,

            opt2 = value2 )

{

if-the-else statments

    return 200;

if-then-else statments

    return 400;

...

}

[ SERVER 1 CONFIG ]
.. [ SERVER 2 CONFIG ]
.. [ SERVER 3 CONFIG ]

Here are some of the configuration file examples


[Sam Ng Home] [twhttpd Home]

Last Modified: 2001-12-05