root/cherokee/trunk/admin/consts.py

Revision 2407, 3.0 kB (checked in by alo, 2 weeks ago)

--

Line 
1 HANDLERS = [
2     ('',             'None'),
3     ('common',       'List & Send'),
4     ('file',         'Static content'),
5     ('dirlist',      'Only listing'),
6     ('redir',        'Redirection'),
7     ('cgi',          'CGI'),
8     ('fcgi',         'FastCGI'),
9     ('scgi',         'SCGI'),
10     ('proxy',        'HTTP reverse proxy'),
11     ('ssi',          'Server Side Includes'),
12     ('server_info',  'Server Info'),
13     ('dbslayer',     'MySQL bridge'),
14     ('mirror',       'Generic balancer'),
15     ('custom_error', 'HTTP error'),
16     ('admin',        'Remote Administration')
17 ]
18
19 ERROR_HANDLERS = [
20     ('',            'Default errors'),
21     ('error_redir', 'Custom redirections'),
22     ('error_nn',    'Closest match')
23 ]
24
25 VALIDATORS = [
26     ('',         'None'),
27     ('plain',    'Plain text file'),
28     ('htpasswd', 'Htpasswd file'),
29     ('htdigest', 'Htdigest file'),
30     ('ldap',     'LDAP server'),
31     ('mysql',    'MySQL server'),
32     ('pam',      'PAM'),
33     ('authlist', 'Fixed list')
34 ]
35
36 VALIDATOR_METHODS = [
37     ('basic',        'Basic'),
38     ('digest',       'Digest'),
39     ('basic,digest', 'Basic or Digest')
40 ]
41
42 LOGGERS = [
43     ('',           'None'),
44     ('combined',   'Apache compatible'),
45     ('w3c',        'W3C'),
46     ('ncsa',       'NCSA')
47 ]
48
49 LOGGER_WRITERS = [
50     ('file',     'File'),
51     ('syslog',   'System logger'),
52     ('stderr',   'Standard Error'),
53     ('exec',     'Execute program')
54 ]
55
56 BALANCERS = [
57     ('round_robin', "Round Robin")
58 ]
59
60 SOURCE_TYPES = [
61     ('interpreter', 'Local interpreter'),
62     ('host',        'Remote host')
63 ]
64
65 ENCODERS = [
66     ('gzip',     'GZip'),
67     ('deflate',  'Deflate')
68 ]
69
70 THREAD_POLICY = [
71     ('',      'Default'),
72     ('fifo',  'FIFO'),
73     ('rr',    'Round-robin'),
74     ('other', 'Dynamic')
75 ]
76
77 POLL_METHODS = [
78     ('',       'Automatic'),
79     ('epoll',  'epoll() - Linux >= 2.6'),
80     ('kqueue', 'kqueue() - BSD, OS X'),
81     ('ports',  'Solaris ports - >= 10'),
82     ('poll',   'poll()'),
83     ('select', 'select()'),
84     ('win32',  'Win32')
85 ]
86
87 REDIR_SHOW = [
88     ('1', 'External'),
89     ('0', 'Internal')
90 ]
91
92 ERROR_CODES = [
93     ('400', '400 Bad Request'),
94     ('403', '403 Forbidden'),
95     ('404', '404 Not Found'),
96     ('405', '405 Method Not Allowed'),
97     ('413', '413 Request Entity too large'),
98     ('414', '414 Request-URI too long'),
99     ('416', '416 Requested range not satisfiable'),
100     ('500', '500 Internal Server Error'),
101     ('501', '501 Not Implemented'),
102     ('502', '502 Bad gateway'),
103     ('503', '503 Service Unavailable'),
104     ('504', '504 Gateway Timeout'),
105     ('505', '505 HTTP Version Not Supported')
106 ]
107
108 RULES = [
109     ('directory',  'Directory'),
110     ('extensions', 'Extensions'),
111     ('request',    'Regular Expression'),
112     ('header',     'Header'),
113     ('exists',     'File exists'),
114     ('method',     'HTTP method'),
115     ('geoip',      'GeoIP')
116 ]
117
118 EXPIRATION_TYPE = [
119     ('',         'Not set'),
120     ('epoch',    'Already expired on 1970'),
121     ('max',      'Do not expire until 2038'),
122     ('time',     'Custom value')
123 ]
124
125 CRYPTORS = [
126     ('',         'No TLS/SSL'),
127     ('libssl',   'OpenSSL / libssl')
128 ]
Note: See TracBrowser for help on using the browser.