Changes between Version 12 and Version 13 of InstallationGuidelines/Cherokee


Ignore:
Timestamp:
06/22/11 20:35:45 (10 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • InstallationGuidelines/Cherokee

    v12 v13  
    3939
    4040==== Configure Cherokee for uWSGI ====
     41Be sure to set the default app in routes.py:
     42{{{
     43cat << EOF > "/home/web2py/routes.py"
     44#!/usr/bin/python
     45default_application = 'eden'
     46default_controller = 'default'
     47default_function = 'index'
     48routes_onerror = [
     49        ('eden/401', '/eden/default/user/login'),
     50        ('eden/*', '/eden/errors/index'),
     51        ('*/*', '/eden/errors/index'),
     52    ]
     53EOF
     54}}}
     55
    4156Set Workers to #CPU cores +1
    4257{{{
     
    92107vserver!30!match!nick = 0
    93108vserver!30!nick = Production
     109vserver!10!collector!enabled = 1
     110vserver!10!directory_index = index.html
     111vserver!10!document_root = /var/www
     112vserver!10!error_writer!filename = /var/log/cherokee/cherokee.error
     113vserver!10!error_writer!type = file
     114vserver!10!logger = combined
     115vserver!10!logger!access!buffsize = 16384
     116vserver!10!logger!access!filename = /var/log/cherokee/cherokee.access
     117vserver!10!logger!access!type = file
     118vserver!10!nick = default
     119vserver!10!rule!10!handler = common
     120vserver!10!rule!10!handler!iocache = 1
     121vserver!10!rule!10!match = default
     122vserver!20!collector!enabled = 1
     123vserver!20!directory_index = index.html
     124vserver!20!document_root = /var/www
     125vserver!20!error_writer!filename = /var/log/cherokee/cherokee.error
     126vserver!20!error_writer!type = file
     127vserver!20!logger = combined
     128vserver!20!logger!access!buffsize = 16384
     129vserver!20!logger!access!filename = /var/log/cherokee/cherokee.access
     130vserver!20!logger!access!type = file
     131vserver!20!match = wildcard
     132vserver!20!match!domain!1 = *
     133vserver!20!match!nick = 0
     134vserver!20!nick = maintenance
     135vserver!20!rule!210!handler = file
     136vserver!20!rule!210!match = fullpath
     137vserver!20!rule!210!match!fullpath!1 = /maintenance.html
     138vserver!20!rule!110!handler = redir
     139vserver!20!rule!110!handler!rewrite!10!regex = ^/*
     140vserver!20!rule!110!handler!rewrite!10!show = 1
     141vserver!20!rule!110!handler!rewrite!10!substring = /maintenance.html
     142vserver!20!rule!110!match = directory
     143vserver!20!rule!110!match!directory = /
     144vserver!20!rule!10!handler = common
     145vserver!20!rule!10!handler!iocache = 1
     146vserver!20!rule!10!match = default
     147vserver!30!collector!enabled = 1
     148vserver!30!directory_index = index.html
     149vserver!30!document_root = /var/www
     150vserver!30!error_writer!filename = /var/log/cherokee/cherokee.error
     151vserver!30!error_writer!type = file
     152vserver!30!logger = combined
     153vserver!30!logger!access!buffsize = 16384
     154vserver!30!logger!access!filename = /var/log/cherokee/cherokee.access
     155vserver!30!logger!access!type = file
     156vserver!30!match = wildcard
     157vserver!30!match!domain!1 = *
     158vserver!30!match!nick = 0
     159vserver!30!nick = Production
    94160vserver!30!rule!400!document_root = /home/web2py/applications/eden/static
     161vserver!30!rule!400!encoder!deflate = allow
     162vserver!30!rule!400!encoder!gzip = allow
     163vserver!30!rule!400!expiration = time
     164vserver!30!rule!400!expiration!time = 7d
    95165vserver!30!rule!400!handler = file
    96 vserver!30!rule!400!match = directory
    97 vserver!30!rule!400!match!directory = /eden/static/
    98 vserver!30!rule!300!handler = redir
    99 vserver!30!rule!300!handler!rewrite!10!regex = /(.*)
    100 vserver!30!rule!300!handler!rewrite!10!show = 1
    101 vserver!30!rule!300!handler!rewrite!10!substring = /eden/$1
    102 vserver!30!rule!300!match = not
    103 vserver!30!rule!300!match!right = directory
    104 vserver!30!rule!300!match!right!directory = /eden
    105 vserver!30!rule!300!match!right!request = ^/$
     166vserver!30!rule!400!match = fullpath
     167vserver!30!rule!400!match!fullpath!1 = /favicon.ico
     168vserver!30!rule!400!match!fullpath!2 = /robots.txt
     169vserver!30!rule!400!match!fullpath!3 = /crossdomain.xml
     170vserver!30!rule!300!document_root = /home/web2py/applications/eden/static
     171vserver!30!rule!300!encoder!deflate = allow
     172vserver!30!rule!300!encoder!gzip = allow
     173vserver!30!rule!300!expiration = time
     174vserver!30!rule!300!expiration!time = 7d
     175vserver!30!rule!300!handler = file
     176vserver!30!rule!300!match = directory
     177vserver!30!rule!300!match!directory = /eden/static/
     178vserver!30!rule!300!match!final = 1
     179vserver!30!rule!200!encoder!deflate = allow
     180vserver!30!rule!200!encoder!gzip = allow
    106181vserver!30!rule!200!handler = uwsgi
    107182vserver!30!rule!200!handler!balancer = round_robin
     
    130205 * http://projects.unbit.it/uwsgi/wiki/Emperor
    131206Create a simple uwsgi app & swap in a config file for this - uwsgi will reload automatically.
     207
    132208=== FastCGI ===
    133209http://web2py.com/AlterEgo/default/show/17