Changeset 1804

Show
Ignore:
Timestamp:
08/13/08 21:23:56 (3 months ago)
Author:
taher
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • cherokee/trunk/doc/cookbook_authentication.txt

    r1801 r1804  
    3434 
    3535 
     36The details to set up the `htdigest` and `htpasswd` are exactly the 
     37same as for `plain` validation. The only difference is the tools used 
     38to create the passwords' file. 
     39 
     40 
     41.htdigest 
     42 
     43To use this handler you will need a file created by the `htdigest` 
     44command. It is a tool to manage user files for digest (and basic) 
     45authentication. 
     46 
     47**** 
     48Syntax:: 
     49  htdigest [ -c ] passwdfile realm username 
     50 
     51The only optional parameter is `-c`, used to create the passwdfile or 
     52overwrite it if it is present. 
     53**** 
     54 
     55To create a file for a `testuser` with `testpassword` you would have 
     56to issue: 
     57 
     58----- 
     59$ htdigest -c passwords.digest secret testuser 
     60Adding password for testuser in realm secret. 
     61New password: 
     62Re-type new password: 
     63 
     64$ cat pass 
     65testuser:secret:f24f76261bcd65780b33edde00855897 
     66----- 
     67 
     68.htpasswd 
     69 
     70For this handle, the tool `htpasswd` is needed to create the 
     71files. The basic usage information is this: 
     72 
     73***** 
     74Usage:: 
     75        htpasswd [-cmdpsD] passwordfile username 
     76+ 
     77        htpasswd -b[cmdpsD] passwordfile username password 
     78+ 
     79        htpasswd -n[mdps] username 
     80+ 
     81        htpasswd -nb[mdps] username password 
     82***** 
     83 
     84Refer to its documentation for details about the parameters. For our example, this 
     85will suffice: 
     86 
     87---- 
     88$ htpasswd -c /var/www/.htpasswd testuser 
     89New password: 
     90Re-type new password: 
     91Adding password for user testuser 
     92 
     93$ cat /var/www/.htpasswd 
     94testuser:iqLGh2g/7bX7M 
     95----- 
     96 
     97Remember that it is never recommended to place the file with the 
     98passwords in a location fetchable from the webserver. This is true for 
     99plain validation, htdigest, htpasswd and whatever file based system 
     100you cross paths with. 
     101 
     102 
    36103//// 
    37104To be written 
    38  
    39 Details for htdigest, htpasswd, mysql and ldap. 
     105Details for mysql and ldap, with screenshots. 
    40106//// 
  • cherokee/trunk/doc/cookbook_optimizations.txt

    r1801 r1804  
    9494Advanced:: 
    9595+ 
    96 * System tweaking: 
    97  - Threads: The default value is chosen so that it is more than enough 
    98    to saturate the processors. You will probably not get much out of 
    99    this setting, since a higher value will not produce better results 
    100    and a lower one will simply increase the amount of unused processor 
    101    power. 
     96* *Threads*: The default value is chosen so that it is more than enough 
     97  to saturate the processors. You will probably not get much out of 
     98  this setting, since a higher value will not produce better results 
     99  and a lower one will simply increase the amount of unused processor 
     100  power. 
    102101+ 
    103  - File descriptors: By deffinition, the higher this limit is, the 
    104   less efficient will your system be in relative terms. However, it 
    105   is understood that if you are tweaking this value is because you 
    106   need to, that is, you have a very high load site. In these cases 
    107   increasing the file descriptors' limit makes sense because the 
    108   higher this limit is, the more connections Cherokee will be able to 
    109   handle. By default Cherokee does not touch this value and it uses 
    110   the one specified by your system. 
     102* *File descriptors*: By deffinition, the higher this limit is, the 
     103  less efficient will your system be in relative terms. However, it 
     104  is understood that if you are tweaking this value is because you 
     105  need to, that is, you have a very high load site. In these cases 
     106  increasing the file descriptors' limit makes sense because the 
     107  higher this limit is, the more connections Cherokee will be able to 
     108  handle. By default Cherokee does not touch this value and it uses 
     109  the one specified by your system. 
  • cherokee/trunk/doc/modules.txt

    r1801 r1804  
     1 
    12  . link:modules_balancers.html[Balancers] 
    23    - link:modules_balancers_round_robin.html[Round robin] 
  • cherokee/trunk/doc/modules_validators_plain.txt

    r1801 r1804  
    3434**** 
    3535testuser:testpassword 
     36 
    3637cherokee:webserver 
    3738**** 
  • cherokee/trunk/doc/other_goodies.txt

    r1801 r1804  
    22---------------- 
    33 
    4 There are several important but mostly unknown features of Cherokee 
    5 that really do make a difference in real-world production environments. 
     4There are several important features of Cherokee that really do make a 
     5difference in real-world production environments. 
     6 
     7[[cherokee-admin]] 
     8Cherokee-Admin 
     9~~~~~~~~~~~~~~ 
     10Cherokee bundles a one of a kind UI to set up every available feature 
     11without the need of editing any configuration files by hand. It is a 
     12modern and easy to manage application that allows to set up the server 
     13with speed and ease. The interface is thoroughly documented trhoughout 
     14Cherokee's documentation. 
     15 
     16[[cherokee-tweak]] 
     17Cherokee-Tweak 
     18~~~~~~~~~~~~~~ 
     19The swiss-army knife of the Cherokee bundle. This little tool enables 
     20you, among other things, to rotate the logs with absolutely no 
     21downtime at all. No connections are lost. No delay happens. It can 
     22also be used to trace Cherokee's state on the fly, even remotely and 
     23on production servers. 
     24 
     25This tool has its own documentation under the 
     26link:bundle_cherokee-tweak.html[cherokee-tweak] section. 
    627 
    728[[x-sendifle]]