Changeset 2379
- Timestamp:
- 11/11/08 19:05:26 (2 months ago)
- Files:
-
- cherokee/trunk/doc/Makefile.am (modified) (2 diffs)
- cherokee/trunk/doc/dev_cherokee.conf.txt (modified) (1 diff)
- cherokee/trunk/doc/dev_issues.txt (modified) (3 diffs)
- cherokee/trunk/doc/index.txt (modified) (1 diff)
- cherokee/trunk/doc/media/images/admin_handler_proxy.png (added)
- cherokee/trunk/doc/modules.txt (modified) (1 diff)
- cherokee/trunk/doc/modules_handlers.txt (modified) (1 diff)
- cherokee/trunk/doc/modules_handlers_mirror.txt (modified) (2 diffs)
- cherokee/trunk/doc/modules_handlers_redir.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
cherokee/trunk/doc/Makefile.am
r2375 r2379 73 73 modules_handlers_mirror.html \ 74 74 modules_handlers_admin.html \ 75 modules_handlers_proxy.html \ 75 76 modules_loggers.html \ 76 77 modules_loggers_combined.html \ … … 136 137 media/images/admin_vserver.png \ 137 138 media/images/admin_vserver_vserver.png \ 139 media/images/admin_handler_proxy.png \ 138 140 media/images/cookbook_django_common.png \ 139 141 media/images/cookbook_django_infosources.png \ cherokee/trunk/doc/dev_cherokee.conf.txt
r2313 r2379 543 543 include = /etc/cherokee/mods-enabled/ 544 544 ---- 545 546 Reverse Proxy 547 ~~~~~~~~~~~~~ 548 549 The reverse proxy , like everything in Cherokee, is modular. It is 550 configured as any other of the modules that use load balancers. 551 552 You need to define a balancing strategy, the information source to be 553 used by the balancer and, optionally, any expression matches that you 554 might wish to rewrite in the headers before relaying the connection. 555 556 This is a basic example: 557 558 ---- 559 server!port = 1234 560 561 # The proxy configuration 562 vserver!1!nick = default 563 vserver!1!document_root = /tmp 564 vserver!1!rule!1!match = default 565 vserver!1!rule!1!handler = proxy 566 vserver!1!rule!1!handler!header_hide!1 = server 567 vserver!1!rule!1!handler!balancer = round_robin 568 vserver!1!rule!1!handler!balancer!source!1 = 1 569 570 # URL rewrite 571 vserver!1!rule!1!handler!rewrite_request!1!regex = ^/(.+).png$ 572 vserver!1!rule!1!handler!rewrite_request!1!substring = /$1.jpg 573 vserver!1!rule!1!handler!rewrite_request!2!regex = ^/test/(.+)$ /$1.jpg 574 vserver!1!rule!1!handler!rewrite_request!2!substring = /test.php?$1 575 576 # The information source 577 source!1!type = host 578 source!1!host = localhost:9090 579 ---- cherokee/trunk/doc/dev_issues.txt
r2376 r2379 18 18 to be half-baked, and as such are only of interest for developers. 19 19 20 [fastcgi] 20 21 FastCGI Handler 21 22 ~~~~~~~~~~~~~~~ … … 35 36 moment "fcgi" is a better option. 36 37 38 [reverse_proxy] 37 39 Reverse Proxy 38 40 ~~~~~~~~~~~~~ 39 41 40 The reverse proxy is currently one of the most demanded features and 41 is under heavy development. The Cherokee-admin module is not yet 42 written, so you'll have to do what no final user is meant to do. It's 43 easy to configure though, so don't worry. It is working nicely, and 44 since r2373 it supports URL rewriting. 42 The reverse proxy has been one of the most demanded features and is 43 under heavy development. It is currently released as a standard 44 handler, so check out the link:modules_handlers_proxy.html[HTTP 45 reverse proxy] handler documentation. 45 46 46 Here you have a basic configuration example: 47 48 ---- 49 server!port = 1234 50 51 # The proxy configuration 52 vserver!1!nick = default 53 vserver!1!document_root = /tmp 54 vserver!1!rule!1!match = default 55 vserver!1!rule!1!handler = proxy 56 vserver!1!rule!1!handler!header_hide!1 = server 57 vserver!1!rule!1!handler!balancer = round_robin 58 vserver!1!rule!1!handler!balancer!source!1 = 1 59 60 # URL rewrite 61 vserver!1!rule!1!handler!rewrite_request!1!regex = ^/(.+).png$ 62 vserver!1!rule!1!handler!rewrite_request!1!substring = /$1.jpg 63 vserver!1!rule!1!handler!rewrite_request!2!regex = ^/test/(.+)$ 64 vserver!1!rule!1!handler!rewrite_request!2!substring = /test.php?$1 65 66 source!1!type = host 67 source!1!host = localhost:9090 68 ---- 69 70 47 [wizards] 71 48 Configuration Wizards 72 49 ~~~~~~~~~~~~~~~~~~~~~ … … 82 59 further tuning. 83 60 61 [boolean_rules] 84 62 AND, OR and NOT rule types 85 63 ~~~~~~~~~~~~~~~~~~~~~~~~~~ cherokee/trunk/doc/index.txt
r2376 r2379 77 77 - link:modules_handlers_fcgi.html[FastCGI]: Fast Common Gateway Interface. 78 78 - link:modules_handlers_scgi.html[SCGI]: Simple Common Gateway Interface. 79 - link:modules_handlers_proxy.html[HTTP reverse proxy]: Surrogate/reverse proxy handler. 79 80 - link:modules_handlers_ssi.html[Server Side Includes] - SSI Server Support. 80 81 - link:modules_handlers_server_info.html[Server Info]: Provide info about Cherokee. cherokee/trunk/doc/modules.txt
r2306 r2379 14 14 - link:modules_handlers_fcgi.html[FastCGI]: Fast Common Gateway Interface. 15 15 - link:modules_handlers_scgi.html[SCGI]: Simple Common Gateway Interface. 16 - link:modules_handlers_proxy.html[HTTP reverse proxy]: Surrogate/reverse proxy handler. 16 17 - link:modules_handlers_ssi.html[Server Side Includes] - SSI Server Support. 17 18 - link:modules_handlers_server_info.html[Server Info]: Provide info about Cherokee. cherokee/trunk/doc/modules_handlers.txt
r2306 r2379 21 21 * link:modules_handlers_fcgi.html[FCGI] - **FastCGI Server Support**. 22 22 * link:modules_handlers_scgi.html[SCGI] - **SCGI Server Support**. 23 * link:modules_handlers_proxy.html[HTTP reverse proxy] - **Surrogate/reverse proxy handler**. 23 24 * link:modules_handlers_ssi.html[Server Side Includes] - **SSI Server Support**. 24 25 * link:modules_handlers_server_info.html[Server Info] - **Server cherokee/trunk/doc/modules_handlers_mirror.txt
r1816 r2379 5 5 6 6 This is the generic handler that provides the specific balancing 7 strategy provided by the balancer modules. Check the documentation for8 link:modules_balancers.html[Balancers] for information about the7 strategy implemented by the balancer modules. Check the documentation 8 for link:modules_balancers.html[Balancers] for information about the 9 9 necessary parameters for any of these. 10 10 … … 14 14 any of those but want to distribute the load among several servers, 15 15 this is the handler you should be using. 16 17 Currently it supports connection forwarding and balancing, so you can 18 configure it to forward the connection to a series of intranet servers 19 for example. The generic balancer will forward the whole request, 20 totally preserving its integrity: same URL, same headers, same 21 eveything. If you would require a more complex behavior you should 22 probably be using the link:modules_handlers_proxy.html[Rreverse Proxy] 23 handler. cherokee/trunk/doc/modules_handlers_redir.txt
r2218 r2379 5 5 6 6 The main idea of a redirection is telling the web client to go to 7 another URL when the requested URL matches a rule. 7 another URL when the requested URL matches a rule. If you are looking 8 for connection forwarding, you should check the 9 link:modules_handlers_mirror.html[generic balancer] instead. 10 8 11 9 12 For example, if you have URLs like::