summaryrefslogtreecommitdiff
path: root/doc/proxy.txt
blob: 6621cf9765219be886a86bd23b9ae5951eb2126f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
===================
the Proxy Interface
===================

-----------------
Module: mod_proxy
-----------------

:Author: Jan Kneschke
:Date: $Date: 2004/08/01 07:01:29 $
:Revision: $Revision: 1.1 $

:abstract:
  The proxy module a simplest way to connect lighttpd to 
  java servers which have a HTTP-interface.
  
.. meta::
  :keywords: lighttpd, Proxy
  
.. contents:: Table of Contents

Description
===========

...

Options
=======

lighttpd provides the Proxy support via the proxy-module 
(mod_proxy) which provides 2 options in the config-file:

:proxy.debug:
  a value between 0 and 65535 to set the debug-level in the 
  Proxy module. Currently only 0 and 1 are used. Use 1 to 
  enable some debug output, 0 to disable it.

:proxy.server:
  tell the module where to send Proxy requests to. Every 
  file-extension can have its own handler. Load-Balancing is 
  done by specifying multiple handles for the same extension.
  
  structure of proxy.server section: ::
  
    ( <extension> => 
      ( <handle> => 
        ( "host" => <string> ,
          "port" => <integer>
	)
      ), 
      ( <handle> => ... 
      )
    )
  
  :<extension>: is the file-extension or prefix 
                (if started with "/")
  :<handle>:    is just a unique handle name
  :"host":      is ip of the proxy server
  :"port":      is tcp-port on the "host" used by the proxy
                server

  e.g.: ::
  
    proxy.server = ( ".php" =>
  		       ( "grisu" => 
		         ( 
		           "host" => "192.168.0.2",
		           "port" => 1026
		         )
		       )
		     )