Changeset 1786
- Timestamp:
- 08/12/08 20:01:37 (3 months ago)
- Files:
-
- cherokee/trunk/ChangeLog (modified) (1 diff)
- cherokee/trunk/doc/Makefile.am (modified) (2 diffs)
- cherokee/trunk/doc/TOC.txt (modified) (5 diffs)
- cherokee/trunk/doc/cookbook_django.txt (added)
- cherokee/trunk/doc/cookbook_optimizations.txt (added)
- cherokee/trunk/doc/cookbook_php.txt (added)
- cherokee/trunk/doc/cookbook_ror.txt (added)
- cherokee/trunk/doc/modules_handlers_cgi.txt (modified) (1 diff)
- cherokee/trunk/doc/modules_handlers_fcgi.txt (modified) (2 diffs)
- cherokee/trunk/doc/modules_validators_ldap.txt (modified) (1 diff)
- cherokee/trunk/doc/modules_validators_mysql.txt (modified) (2 diffs)
- cherokee/trunk/doc/modules_validators_pam.txt (modified) (1 diff)
- cherokee/trunk/doc/other_goodies.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
cherokee/trunk/ChangeLog
r1785 r1786 1 2008-08-12 Taher Shihadeh <taher@unixwars.com> 2 * doc/cookbook_ror.txt, doc/cookbook_php.txt, 3 doc/cookbook_django.txt, doc/cookbook_optimizations.txt, 4 doc/modules_handlers_cgi.txt, doc/modules_handlers_fcgi.txt, 5 doc/modules_validators_mysql.txt, doc/modules_validators_ldap.txt, 6 doc/modules_validators_pam.txt, doc/other_goodies.txt: more 7 changes and some new docs. 8 1 9 2008-08-12 Alvaro Lopez Ortega <alvaro@alobbs.com> 2 10 cherokee/trunk/doc/Makefile.am
r1776 r1786 10 10 11 11 .txt.html: 12 $(ASCIIDOC) -o $@$<12 $(ASCIIDOC) $< 13 13 14 14 docdir = $(datadir)/doc/cherokee … … 45 45 cookbook_authentication.html \ 46 46 cookbook_ssl.html \ 47 cookbook_optimizations.html \ 48 cookbook_php.html \ 49 cookbook_ror.html \ 50 cookbook_django.html \ 47 51 modules.html \ 48 52 modules_balancers.html \ cherokee/trunk/doc/TOC.txt
r1777 r1786 42 42 ///// 43 43 Reference table <8> link:cookbook_reference.html[] 44 Optimizing Cherokee <2> link:cookbook_optimiz ing_cherokee.html[]44 Optimizing Cherokee <2> link:cookbook_optimizations.html[] <descriptors, iocache, x-sendfile, 45 45 ///// 46 46 … … 49 49 //// 50 50 Embedding Cherokee <9> link:cookbook_embedding_cherokee.html[] 51 Managing logs <5> link:cookbook_managing_logs.html[] < rotations and cherokee-tweak?>51 Managing logs <5> link:cookbook_managing_logs.html[] <backends, rotations and cherokee-tweak?> 52 52 Authentication [8] <3> link:cookbook_authentication.html[Authentication] 53 53 SSL/TLS, certs [13]<6> link:cookbook_ssl.html[] 54 Setting up PHP <4> link:cookbook_php.html[] 54 //// 55 . link:cookbook_php.html[Setting up PHP] 56 ////// 55 57 Setting up Django <4> link:cookbook_django.html[] 56 58 Setting up RoR <4> link:cookbook_ror.html[] 57 //// 59 ////// 58 60 59 61 ********************************* … … 85 87 - link:modules_validators_htpasswd.html[htpasswd] 86 88 - link:modules_validators_htdigest.html[htdigest] 87 ////// 88 - ldap [7.1] link:modules_validators_ldap.html[LDAP] 89 - mysql [7.3] link:modules_validators_mysql.html[MySQL] 90 ////// 89 - link:modules_validators_ldap.html[LDAP] 90 - link:modules_validators_mysql.html[MySQL] 91 91 - link:modules_validators_pam.html[PAM] 92 92 … … 95 95 ********************************* 96 96 97 FAQ98 Community99 97 - link:other_goodies.html[Cherokee Goodies] 98 //// 99 - FAQ 100 - Community 101 //// 100 102 101 103 ********************************* … … 106 108 . link:dev_cherokee.conf.html[cherokee.conf] 107 109 //// 108 . API introduction link:dev_api.html[]109 . Examples link:dev_examples.html[]110 . API introduction link:dev_api.html[] 111 . Examples link:dev_examples.html[] 110 112 //// cherokee/trunk/doc/modules_handlers_cgi.txt
r1776 r1786 18 18 Change to UID , String , Executes each CGI under its owner's user ID. 19 19 Error handler , Boolean , Use CGI output as error message. 20 Check file , Boolean , Check whether the file existsto build PATH_INFO.20 Check file , Boolean , Check file existence to build PATH_INFO. 21 21 Pass request , Boolean , Pass request headers. 22 22 Allow X-Sendfile , Boolean , Use the non-standard X-Sendfile header. 23 23 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 24 25 Note that the link:other_goodies.html#x-sendfile[X-Sendfile] feature 26 also supports `X-Accel-Redirect` headers transparently. This is to 27 allow the migration of applications supporting it whithout having to 28 make major code rewrites. 29 30 Warning: 31 ~~~~~~~~ 32 33 The `Check file` flag affects how PATH_INFO is generated. You should 34 disable this when you have an application that is running the whole 35 virtual server tree, as it is a common source of problems. You can 36 look at a practical example about PATH_INFO in the 37 link:modules_handlers_common.html[File & Send] handler documentation. 24 38 25 39 Examples cherokee/trunk/doc/modules_handlers_fcgi.txt
r1776 r1786 23 23 ~~~~~~~~~~ 24 24 25 The options common to link:modules_handlers_cgi.html[CGI] are: 25 To set up the general gateway options, read about the common 26 parameters shared with the link:modules_handlers_cgi.html[CGI] handler. 26 27 27 [grid="rows"] 28 `~~~~~~~~~~~~~~~~`~~~~~~~~~~`~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 29 Parameters , Type , Description 30 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 Script Alias , String , It defines a kind of execution interpreter. \ 32 The CGI will be run as a parameter of this \ 33 script. 34 Change to UID , String , Executes each CGI under its owner's user ID. 35 Error handler , Boolean , Use CGI output as error message. 36 Check file , Boolean , Check whether the file exists to build PATH_INFO. 37 Pass request , Boolean , Pass request headers. 38 Allow X-Sendfile , Boolean , Use the non-standard X-Sendfile header. 39 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 40 41 To setup the balancing options read the 28 To set up the balancing options read the 42 29 link:modules_balancers.html[Balancers] section for general information 43 30 and the link:modules_balancers_round_robin.html[Round robin] section … … 46 33 Examples 47 34 ~~~~~~~~ 48 This example shows a typical usage of FastCGI. It connects to a 49 FastCGI server located in localhost in port 8002. If no server is 50 running, the webserver will run the FastCGI server by issuing the command 51 defined as the *Interpreter* sub-parameter: 52 53 image::media/images/admin_handler_fastcgi1.png[Fastcgi] 54 55 This example shows a typical usage of multiple FastCGI servers. It 56 connects to FastCGI servers located in several locations. If no 57 server is running in the local computer, the webserver will run the 58 FastCGI server by issuing the specified command. Note that for remote 59 FastCGI servers, you are responsible to run the FastCGI servers there 60 manually: 61 62 image::media/images/admin_handler_fastcgi2.png[Fastcgi] 63 64 65 Configuring PHP 66 ~~~~~~~~~~~~~~~ 67 68 The **PHP_FCGI_CHILDREN** environment variable is mandatory for PHP 69 FastCGI servers. It defines how much children should serve the 70 requests coming from the webserver. 71 72 If you define **PHP_FCGI_MAX_REQUESTS**, the value should be negative 73 so that PHP would take as many requests as possible. If you leave it 74 unset, PHP will take the default value (500) and your 500th request 75 will be rejected and the FCGI handler will return an Error 500 76 (Internal server error) for it. 77 35 Refer to the link:cookbook.html[Cookbook] if you want specific 36 examples on how to configure this 37 handler. The recipe about link:cookbook_php.html[setting up PHP] is a 38 good starting point. 78 39 79 40 Note for developers cherokee/trunk/doc/modules_validators_ldap.txt
r1777 r1786 34 34 Example 35 35 ^^^^^^^ 36 To be written 36 37 Here is an example of what could be reflected in the 38 link:dev_cherokee.conf.html[cherokee.conf] configuration file after 39 setting up this authentication mechanism. Refer to the 40 link:cookbook_authentication.html[Authentication] recipe for a full 41 hands-on approach. 42 43 ---- 44 vserver!10!rule!500!auth = ldap 45 vserver!10!rule!500!auth!base_dn = Example DN 46 vserver!10!rule!500!auth!bind_dn = Directory Manager 47 vserver!10!rule!500!auth!bind_pw = secretpassword 48 vserver!10!rule!500!auth!methods = basic 49 vserver!10!rule!500!auth!port = 389 50 vserver!10!rule!500!auth!realm = secret 51 vserver!10!rule!500!auth!server = ldap.example.com 52 vserver!10!rule!500!auth!tls = 0 53 vserver!10!rule!500!match = directory 54 vserver!10!rule!500!match!directory = /auth 55 vserver!10!rule!500!match!final = 0 56 vserver!10!rule!500!only_secure = 0 57 ---- cherokee/trunk/doc/modules_validators_mysql.txt
r1647 r1786 11 11 Parameter , Description 12 12 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 13 __host__ , Optional. The runningthat is running the \13 __host__ , Optional. The server that is running the \ 14 14 MySQL database server. Default: __localhost__. 15 15 __port__ , Optional. The port that MySQL is listening on. \ … … 40 40 Example 41 41 ^^^^^^^ 42 43 Here is an example of what could be reflected in the 44 link:dev_cherokee.conf.html[cherokee.conf] configuration file after 45 setting up this authentication mechanism. Refer to the 46 link:cookbook_authentication.html[Authentication] recipe for a full 47 hands-on approach. 48 42 49 ---- 43 vserver!default!directory!/members!handler = mysql 44 vserver!default!directory!/members!handler!user = brian 50 vserver!10!rule!500!auth = mysql 51 vserver!10!rule!500!auth!database = auth_users 52 vserver!10!rule!500!auth!host = localhost 53 vserver!10!rule!500!auth!methods = basic,digest 54 vserver!10!rule!500!auth!passwd = db_passwd 55 vserver!10!rule!500!auth!port = 3306 56 vserver!10!rule!500!auth!query = SELECT password FROM auth_users WHERE username= '${user}' 57 vserver!10!rule!500!auth!realm = secret 58 vserver!10!rule!500!auth!use_md5_passwd = 1 59 vserver!10!rule!500!auth!user = db_user 60 vserver!10!rule!500!match = directory 61 vserver!10!rule!500!match!directory = /auth 62 vserver!10!rule!500!match!final = 0 63 vserver!10!rule!500!only_secure = 0 45 64 ---- cherokee/trunk/doc/modules_validators_pam.txt
r1777 r1786 24 24 restriction list is provided. 25 25 26 27 Here is an example of what could be reflected in the 28 link:dev_cherokee.conf.html[cherokee.conf] configuration file after 29 setting up this authentication mechanism. Refer to the 30 link:cookbook_authentication.html[Authentication] recipe for a full 31 hands-on approach. 32 26 33 ---- 27 34 vserver!10!rule!500!auth = pam cherokee/trunk/doc/other_goodies.txt
r1776 r1786 31 31 absolutely no cost. 32 32 33 Note that the X-Sendfile feature also supports `X-Accel-Redirect` 34 header, a similar feature offered by other web servers. 35 This is to allow the migration of applications supporting it whithout 36 having to make major code rewrites. 37 33 38 34 39 [zero-downtime]